<commit_before>require 'spec_helper'

describe CongressApiController do

  context 'GET #bill' do

    it 'retrieves bill information and assign it to an instance variable' do
      bill = FactoryGirl.create(:bill)
      get :bill, {bill_type: "s", bill_number: "744", congress: "113"}
      assigns(:bill).should eq(bill)
    end

#    it 'retrieves an array of vote information and assign it to an instance variable' do
      #vote1 = FactoryGirl.create(:vote)
      #vote2 = FactoryGirl.create(:vote)<commit_msg>edit bills controller spec to reflect code changes<commit_after>require 'spec_helper'

describe BillsController do

  context 'GET #find' do

    it 'retrieves bill information and assign it to an instance variable' do
      bill = FactoryGirl.create(:bill)
      get :find, {bill_type: "s", bill_number: "744", congress: "113"}
      assigns(:bill).should eq(bill)
    end

#    it 'retrieves an array of vote information and assign it to an instance variable' do
      #vote1 = FactoryGirl.create(:vote)
      #vote2 = FactoryGirl.create(:vote)
{'fraction_non_alphanumeric': 0.09613572101790764, 'fraction_numerical': 0.015080113100848256, 'mean_word_length': 3.7837837837837838, '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': '4727590', 'n_tokens_mistral': 336, 'n_tokens_neox': 303, 'n_words': 112}