Skip to content

Commit

Permalink
rubo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike committed Apr 24, 2024
1 parent 2cdc1e6 commit 8ac78c7
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 @@ -29,7 +29,7 @@ def perform
percent_expired = (expired_count.to_f / new_count) * 100.0

if percent_expired > EXPIRED_THRESHOLD
message_time = created_at_range.first.in_time_zone("America/New_York")
message_time = created_at_range.first.in_time_zone('America/New_York')
.strftime('%Y-%m-%d %I:%M:%S %p %Z')
fail_rate = ActiveSupport::NumberHelper.number_to_percentage(percent_expired, precision: 1)
message = "#{expired_count}(#{fail_rate}) " \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
end

it 'warns using slack' do
t = 1.hour.ago.in_time_zone("America/New_York").strftime('%Y-%m-%d %I:%M:%S %p %Z')
t = 1.hour.ago.in_time_zone('America/New_York').strftime('%Y-%m-%d %I:%M:%S %p %Z')
@results = @job.perform
expect(slack_messenger).to have_received(:notify!).once
expect(VBADocuments::Slack::Messenger).to have_received(:new).with(
Expand Down

0 comments on commit 8ac78c7

Please sign in to comment.