mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-16 12:40:07 -04:00
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 :-/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user