Better user specs for joining tables
This commit is contained in:
@@ -23,6 +23,12 @@ step "I should be signed in as a user through facebook" do
|
||||
step "the newly created user info should be stored in the local storage"
|
||||
end
|
||||
|
||||
step 'there is another signed in user user' do
|
||||
Capybara.session_name = :other_user
|
||||
step 'there is another user'
|
||||
visit test_login_admin_users_path(email: @other_user.email)
|
||||
end
|
||||
|
||||
step "I should be redirected to the user home" do
|
||||
page.current_path.should == user_root_path
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user