Skip to content

Commit

Permalink
Replaces root_path with dashboard_path to fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmeyerhofer committed Oct 28, 2018
1 parent dc51e07 commit ec61222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/users/user_can_signup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
fill_in('password', with: 'passpass')
click_on 'Log In'

expect(current_path).to eq root_path
expect(current_path).to eq dashboard_path
expect(page).to have_content 'Welcome, Ra.'
expect(page).to have_link 'Sign Out'
expect(page).to have_link 'Profile'
Expand All @@ -32,7 +32,7 @@
u = User.create(first_name: 'Raa', last_name: 'Zzz', email: '[email protected]', password: 'passpass')
allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(u)
visit signup_path
expect(current_path).to eq root_path
expect(current_path).to eq dashboard_path
end
end
end

0 comments on commit ec61222

Please sign in to comment.