Skip to content

Commit

Permalink
Autocorrect RuboCop offenses for Rails/ShortI18n
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoj committed Jul 30, 2020
1 parent 4e8cec4 commit 644e1a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/api/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ Style/MethodCallWithArgsParentheses:
- info
- kill
- load
- localize
- match_array
- merge_timeout
- message
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/features/beta/webui/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
it 'when request is in a final state' do
bs_request.update_attributes(state: :accepted)
visit request_show_path(bs_request)
expect(page).to have_text("Auto-accept was set to #{I18n.localize bs_request.accept_at, format: :only_date}.")
expect(page).to have_text("Auto-accept was set to #{I18n.l(bs_request.accept_at, format: :only_date)}.")
end

it 'when request auto_accept is in the past and not in a final state' do
Expand Down
2 changes: 1 addition & 1 deletion src/api/spec/features/webui/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
it 'when request is in a final state' do
bs_request.update(state: :accepted)
visit request_show_path(bs_request)
expect(page).to have_text("Auto-accept was set to #{I18n.localize bs_request.accept_at, format: :only_date}.")
expect(page).to have_text("Auto-accept was set to #{I18n.l(bs_request.accept_at, format: :only_date)}.")
end

it 'when request auto_accept is in the past and not in a final state' do
Expand Down

0 comments on commit 644e1a6

Please sign in to comment.