<commit_before>require 'spec_helper'

feature "crop wranglers" do
  context "signed in user" do
    let!(:crop_wranglers) { FactoryGirl.create_list(:crop_wrangling_member, 3) }
    let(:user){crop_wranglers.first}
    before :each do
      visit root_path
      click_link 'Sign in'
      fill_in 'Login', with: user.login_name
      fill_in 'Password', with: <PASSWORD>
      click_button 'Sign in'
      page.should have_content user.login_name
    end

    scenario "crop wranglers are listed on the crop wrangler page" do
      click_link 'Crop Wrangling'

      within '.crop_wranglers' do
        expect(page).to have_content 'Crop Wranglers:'
        crop_wranglers.each do |crop_wrangler|
          page.should have_link crop_wrangler.login_name, :href => member_path(crop_wrangler)
        end
      end
    end
  end
end<commit_msg>s/user/member/g in crop wrangler tests<commit_after>require 'spec_helper'

feature "crop wranglers" do
  context "signed in member" do
    let!(:crop_wranglers) { FactoryGirl.create_list(:crop_wrangling_member, 3) }
    let(:member){crop_wranglers.first}
    before :each do
      visit root_path
      click_link 'Sign in'
      fill_in 'Login', with: member.login_name
      fill_in 'Password', with: <PASSWORD>
      click_button 'Sign in'
      page.should have_content member.login_name
    end

    scenario "crop wranglers are listed on the crop wrangler page" do
      click_link 'Crop Wrangling'

      within '.crop_wranglers' do
        expect(page).to have_content 'Crop Wranglers:'
        crop_wranglers.each do |crop_wrangler|
          page.should have_link crop_wrangler.login_name, :href => member_path(crop_wrangler)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0809551543389633, 'fraction_numerical': 0.0011648223645894002, 'mean_word_length': 3.1497584541062804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5920072', 'n_tokens_mistral': 583, 'n_tokens_neox': 576, 'n_words': 147}