Skip to content

Commit

Permalink
Fix tests broken by updating flash message text
Browse files Browse the repository at this point in the history
  • Loading branch information
munckymagik committed Oct 6, 2015
1 parent 7ca449c commit 59dbad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module SelfService
end

it 'adds a success flash message' do
expect(flash[:notice]).to eq('Saved successfully')
expect(flash[:notice]).to eq(I18n.t('self_service.adviser_edit.saved'))
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module SelfService
before { patch :update, firm_id: firm.id, id: adviser.id, adviser: adviser_params }

it 'adds a success message after successfully updating the adviser' do
expect(flash[:notice]).to eq('Saved successfully')
expect(flash[:notice]).to eq(I18n.t('self_service.adviser_edit.saved'))
end

it 'redirects to the edit page' do
Expand Down

0 comments on commit 59dbad4

Please sign in to comment.