We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 470aae6 commit 42b04e5Copy full SHA for 42b04e5
1 file changed
spec/slack-sup/commands/rounds_spec.rb
@@ -30,10 +30,11 @@
30
31
it 'reports counts' do
32
Timecop.travel(Time.now + 731.days)
33
+ previous_round = team.rounds.asc(:_id).first
34
expect(message: "#{SlackRubyBot.config.user} rounds 2").to respond_with_slack_message(
35
"Team S'Up facilitated 2 rounds.\n" \
36
"* in progress: 1 S'Up paired 3 users and no outcomes reported.\n" \
- "* 1 year ago: 1 S'Up paired 3 users, 100% positive outcomes and 100% outcomes reported."
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."
38
)
39
end
40
0 commit comments