Skip to content

Commit 21846da

Browse files
dblockCopilot
andcommitted
Travel an extra day in rounds spec
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 42b04e5 commit 21846da

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

spec/slack-sup/commands/rounds_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
end
3030

3131
it 'reports counts' do
32-
Timecop.travel(Time.now + 731.days)
33-
previous_round = team.rounds.asc(:_id).first
32+
Timecop.travel(Time.now + 732.days)
3433
expect(message: "#{SlackRubyBot.config.user} rounds 2").to respond_with_slack_message(
3534
"Team S'Up facilitated 2 rounds.\n" \
3635
"* in progress: 1 S'Up paired 3 users and no outcomes reported.\n" \
37-
"* #{previous_round.ran_at.to_time.ago_in_words(highest_measure_only: true)}: 1 S'Up paired 3 users, 100% positive outcomes and 100% outcomes reported."
36+
"* 2 years ago: 1 S'Up paired 3 users, 100% positive outcomes and 100% outcomes reported."
3837
)
3938
end
4039
end

0 commit comments

Comments
 (0)