<commit_before>require 'spec_helper'

describe UsersController do
  render_views
  fixtures :users

  describe "GET 'new'" do
    it "should be successful" do
      get "new"
      response.should be_success
    end

    it "should have the right title" do
      get "new"
      response.should have_selector("title", :content => "Wishlist")
    end
  end

  describe "GET 'show'" do
    before(:each) do
      @user = User.first
    end

    it "should be successful" do
      get "show", :id => @user
      response.should be_success
      assigns(:user).should == @user
    end

    it "should have the right title" do
      get "show", :id => @user
      response.should have_selector("title", :content => @user.name)
    end

    it "should include the user's name" do
      get "show", :id => @user
      response.should have_selector("h1", :content => @user.name)
    end
  end

  describe "POST 'create'" do
    it "should redirect on successful registration" do<commit_msg>Minor tweak to spec<commit_after>require 'spec_helper'

describe UsersController do
  render_views
  fixtures :users

  describe "GET 'new'" do
    it "should be successful" do
      get "new"
      response.should be_success
    end

    it "should have the right title" do
      get "new"
      response.should have_selector("title", :content => "Sign up")
    end
  end

  describe "GET 'show'" do
    before(:each) do
      @user = User.first
    end

    it "should be successful" do
      get "show", :id => @user
      response.should be_success
      assigns(:user).should == @user
    end

    it "should have the right title" do
      get "show", :id => @user
      response.should have_selector("title", :content => @user.name)
    end

    it "should include the user's name" do
      get "show", :id => @user
      response.should have_selector("h1", :content => @user.name)
    end
  end

  describe "POST 'create'" do
    it "should redirect on successful registration" do
{'fraction_non_alphanumeric': 0.10563737938039613, 'fraction_numerical': 0.001015744032503809, 'mean_word_length': 2.6685288640595903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6070372', 'n_tokens_mistral': 603, 'n_tokens_neox': 583, 'n_words': 211}