<commit_before>require 'spec_helper'


describe Facts::Fact do
  
  let(:user) { FactoryGirl.create :user }
  
  let(:view) do
    view = mock('view')
    view.should_receive(:current_user).any_number_of_times.and_return(user)
    view.should_receive(:lookup_context).any_number_of_times.and_return(nil)
    view
  end
  
  let(:fact) {FactoryGirl.create :fact}
  
  subject { 
    Facts::Fact.for(fact: fact, view: view)
  }

  describe :modal? do
    it "should work" do
      subject.modal?.should == false
    end
  end
end<commit_msg>use factorygirl mixins<commit_after>require 'spec_helper'


describe Facts::Fact do

  let(:user) { create :user }

  let(:view) do
    view = mock('view')
    view.should_receive(:current_user).any_number_of_times.and_return(user)
    view.should_receive(:lookup_context).any_number_of_times.and_return(nil)
    view
  end

  let(:fact) {create :fact}

  subject {
    Facts::Fact.for(fact: fact, view: view)
  }

  describe :modal? do
    it "should work" do
      subject.modal?.should == false
    end
  end
end
{'fraction_non_alphanumeric': 0.11954459203036052, 'fraction_numerical': 0.0, 'mean_word_length': 3.6271929824561404, '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': '3204980', 'n_tokens_mistral': 382, 'n_tokens_neox': 362, 'n_words': 73}