Finish join request spec
This commit is contained in:
@@ -30,7 +30,7 @@ step 'there is another signed in user user' do
|
||||
end
|
||||
|
||||
step "I should be redirected to the user home" do
|
||||
page.current_path.should == user_root_path
|
||||
route_should_be 'user#index'
|
||||
end
|
||||
|
||||
step "the newly created user info should be stored in the local storage" do
|
||||
|
||||
@@ -20,6 +20,10 @@ step "the original user rejects the other user's join request" do
|
||||
find('.reject-join-request-button').click
|
||||
end
|
||||
|
||||
step "the other user clicks the show me the menu button" do
|
||||
find('.show-menu-button').click
|
||||
end
|
||||
|
||||
step "the other user should see a join reject message" do
|
||||
Capybara.session_name = :other_user
|
||||
reject_text = I18n.t('messages.join_request_rejected')
|
||||
|
||||
Reference in New Issue
Block a user