From a8a34d8dc8fac4bdbe99b6387346af3c1b58fb7e Mon Sep 17 00:00:00 2001 From: Skud Date: Sun, 31 Aug 2014 18:28:50 +1000 Subject: [PATCH] s/user/member/g in crop wrangler tests We don't use the term "user" in Growstuff -- this should ideally have been caught in code review but I missed it :-/ --- spec/features/crop_wranglers_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/features/crop_wranglers_spec.rb b/spec/features/crop_wranglers_spec.rb index 033aca5f2..80475bd18 100644 --- a/spec/features/crop_wranglers_spec.rb +++ b/spec/features/crop_wranglers_spec.rb @@ -1,16 +1,16 @@ require 'spec_helper' feature "crop wranglers" do - context "signed in user" do + context "signed in member" do let!(:crop_wranglers) { FactoryGirl.create_list(:crop_wrangling_member, 3) } - let(:user){crop_wranglers.first} + let(:member){crop_wranglers.first} before :each do visit root_path click_link 'Sign in' - fill_in 'Login', with: user.login_name - fill_in 'Password', with: user.password + fill_in 'Login', with: member.login_name + fill_in 'Password', with: member.password click_button 'Sign in' - page.should have_content user.login_name + page.should have_content member.login_name end scenario "crop wranglers are listed on the crop wrangler page" do