<commit_before>require 'spec_helper'

describe HomeController do
  render_views

  before(:each) do
    @signup = Factory(:signup)
  end

  describe "GET 'index'" do
    it "returns http success" do
      get 'index'
      response.should be_success
      response.body.should have_selector("title",
                                         :content => "Circle - Continuous Integration made easy")
    end

    it "signs up OK" do
      lambda do
        post :create, :signup => @signup
      end.should change(Signup, :count).by(1)
    end

    it "redirects" do
      post :create, :signup => @signup
      response.should redirect_to(root_path)
      flash[:done].should == true
    end
  end
end
<commit_msg>Stop using factories in home spec.<commit_after>require 'spec_helper'

describe HomeController do
  render_views

  let(:signup) do { email: "<EMAIL>", contact: true } end

  describe "GET 'index'" do
    it "returns http success" do
      get 'index'
      response.should be_success
      response.body.should have_selector("title",
                                         :content => "Circle - Continuous Integration made easy")
    end

    it "signs up OK" do
      lambda do
        post :create, :signup => signup
      end.should change(Signup, :count).by(1)
    end

    it "redirects" do
      post :create, :signup => signup
      response.should redirect_to(root_path)
      flash[:done].should == true
    end
  end
end

{'fraction_non_alphanumeric': 0.09606081548030408, 'fraction_numerical': 0.00138217000691085, 'mean_word_length': 2.3211009174311927, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2480360', 'n_tokens_mistral': 430, 'n_tokens_neox': 414, 'n_words': 131}