Sha256: 5cd3ca310efdd60f28f94413cb03a542926816b2472ff314e36f2ff519b845e5
Contents?: true
Size: 816 Bytes
Versions: 17
Compression:
Stored size: 816 Bytes
Contents
Given /^I have a user for masquerade$/ do @user_mask = create(:user) end When /^I am on the users page$/ do visit '/' end When /^I login as one user$/ do find('.login_as').click end Then /^I should be login as this user$/ do find('.current_user').should have_content(@user_mask.email) end When /^I press back masquerade button$/ do click_on "Back masquerade" end Then /^I should be login as owner user$/ do find('.current_user').should have_content(@user.email) end Given /^I have a student for masquerade$/ do @student_mask = create(:student) end When /^I am on the students page$/ do visit '/students' end When /^I login as one student$/ do find('.login_as').click end Then /^I should be login as this student$/ do find('.current_student').should have_content(@student_mask.email) end
Version data entries
17 entries across 17 versions & 1 rubygems