Skip to content

Commit

Permalink
Fixed test to work with f170d32
Browse files Browse the repository at this point in the history
  • Loading branch information
amatriain committed Feb 16, 2018
1 parent f170d32 commit ab2938e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/acceptance_tests/suite_1/feeds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

it 'shows an alert if it cannot load feeds', js: true do
allow_any_instance_of(User).to receive(:subscribed_feeds).and_raise StandardError.new
login_user_for_feature @user
visit new_user_session_path
close_cookies_alert
fill_in 'Email', with: @user.email
fill_in 'Password', with: @user.password
click_on 'Log in'
user_should_be_logged_in
should_show_alert 'problem-loading-feeds'
end

Expand Down

0 comments on commit ab2938e

Please sign in to comment.