Fix Hound CI violations
This commit is contained in:
parent
110afe1192
commit
c742e57534
3 changed files with 6 additions and 5 deletions
|
|
@ -9,8 +9,8 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if session[:return_to] and
|
if session[:return_to] &&
|
||||||
not session[:return_to].start_with?(user_registration_path)
|
(not session[:return_to].start_with?(user_registration_path))
|
||||||
logger.debug "Returning to #{session[:return_to]}"
|
logger.debug "Returning to #{session[:return_to]}"
|
||||||
session[:return_to]
|
session[:return_to]
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,8 @@ feature Conference do
|
||||||
|
|
||||||
click_button 'Create Conference'
|
click_button 'Create Conference'
|
||||||
|
|
||||||
expect(page.find('#flash_notice').text).to eq('Conference was successfully created.')
|
expect(page.find('#flash_notice').text).
|
||||||
|
to eq('Conference was successfully created.')
|
||||||
expect(Conference.count).to eq(expected_count)
|
expect(Conference.count).to eq(expected_count)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -32,7 +33,8 @@ feature Conference do
|
||||||
fill_in 'conference_social_tag', with: 'NewCon'
|
fill_in 'conference_social_tag', with: 'NewCon'
|
||||||
|
|
||||||
click_button 'Update Conference'
|
click_button 'Update Conference'
|
||||||
expect(page.find('#flash_notice').text).to eq('Conference was successfully updated.')
|
expect(page.find('#flash_notice').text).
|
||||||
|
to eq('Conference was successfully updated.')
|
||||||
|
|
||||||
conference.reload
|
conference.reload
|
||||||
expect(conference.title).to eq('New Con')
|
expect(conference.title).to eq('New Con')
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
module LoginMacros
|
module LoginMacros
|
||||||
|
|
||||||
def sign_in(user)
|
def sign_in(user)
|
||||||
visit new_user_session_path
|
visit new_user_session_path
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue