Skip to content

Commit

Permalink
Fix string format error
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasCF committed Feb 7, 2020
1 parent c405041 commit b2a227c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mailers/generic_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:duties) do
user = create(:user)
@duties = (8..12)
.map { |n| format('%<n>2d:00', n).in_time_zone }
.map { |n| format('%<hour>2d:00', hour: n).in_time_zone }
.map do |start_time|
create(:time_range, start_time: start_time,
end_time: start_time + 1.hour)
Expand Down Expand Up @@ -56,7 +56,7 @@
let(:duties) do
user = create(:user)
@duties = [8, 9, 12, 13]
.map { |n| format('%<n>2d:00', n).in_time_zone }
.map { |n| format('%<hour>2d:00', hour: n).in_time_zone }
.map do |start_time|
create(:time_range, start_time: start_time,
end_time: start_time + 1.hour)
Expand Down

0 comments on commit b2a227c

Please sign in to comment.