<commit_before># coding: utf-8

require 'spec_helper'
feature 'スタンザを表示する' do
  context 'General Summary スタンザ' do
    scenario "遺伝子 sll1615" do
      visit stanza_path('general_summary_stanza', gene_id: 'sll1615')

      expect(page).to have_text('tRNA modification GTPase TrmE')
      expect(page).to have_text('trmE')
      expect(page).to have_text('mnmE; thdF')
    end
  end

  context 'Transcript Attributes スタンザ' do
    scenario "遺伝子 sll1615" do
      visit stanza_path('transcript_attributes_stanza', gene_id: 'sll1615')

      expect(page).to have_text('1455753')
      expect(page).to have_text('1457123')
    end
  end
end<commit_msg>add spec<commit_after># coding: utf-8

require 'spec_helper'
feature 'スタンザを表示する' do
  context 'General Summary スタンザ' do
    scenario "遺伝子 sll1615" do
      visit stanza_path('general_summary_stanza', gene_id: 'sll1615')

      expect(page).to have_text('tRNA modification GTPase TrmE')
      expect(page).to have_text('trmE')
      expect(page).to have_text('mnmE; thdF')
    end
  end

  context 'Transcript Attributes スタンザ' do
    scenario "遺伝子 sll1615" do
      visit stanza_path('transcript_attributes_stanza', gene_id: 'sll1615')

      expect(page).to have_text('1455753')
      expect(page).to have_text('1457123')
    end
  end

  context 'Gene Attributes スタンザ' do
    scenario "遺伝子 slr1311 / taxid: 1148" do
      visit stanza_path('gene_attributes_stanza', gene_id: 'slr1311', tax_id: '1148')

      expect(page).to have_text('photosystem II D1 protein')
      expect(page).to have_text('psbA2')
      expect(page).to have_text('MTTTLQQRESASLWEQFCQWVTSTNNRIYVGWFGTLMIPTLLTATTCFIIAFIAAPPVDIDGIREPVAGSLLYGNNIISGAVVPSSNAIGLHFYPIWEAASLDEWLYNGGPYQLVVFHFLIGIFCYMGRQWELSYRLGMRPWICVAYSAPVSAATAVFLIYPIGQGSFSDGMPLGISGTFNFMIVFQAEHNILMHPFHMLGVAGVFGGSLFSAMHGSLVTSSLVRETTEVESQNYGYKFGQEEETYNIVAAHGYFGRLIFQYASFNNSRSLHFFLGAWPVIGIWFTAMGVSTMAFNLNGFNFNQSILDSQGRVIGTWADVLNRANIGFEVMHERNAHNFPLDLASGEQAPVALTAPAVNG
')
      expect(page).to have_text('7229..8311')
      expect(page).to have_text('http://purl.uniprot.org/refseq/NP_439906.1')
    end
  end
end
{'fraction_non_alphanumeric': 0.09722222222222222, 'fraction_numerical': 0.04549808429118774, 'mean_word_length': 4.851540616246498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '789236', 'n_tokens_mistral': 943, 'n_tokens_neox': 867, 'n_words': 138}