Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
eitoball committed Oct 13, 2022
1 parent 09bf2bd commit fb467fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/controllers/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
get :me
end

around do |example|
I18n.with_locale(:'en-US') { example.run }
end

it 'return HTTP 401 Unauthorized' do
expect(response).to redirect_to(new_user_session_path)
expect(response).to redirect_to(new_user_session_path(locale: 'en-US'))
end
end

Expand Down

0 comments on commit fb467fa

Please sign in to comment.