From 42b8613022961a615571ce4f4555305e801ba549 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Mon, 28 Oct 2024 17:53:19 -0400 Subject: [PATCH] Fix spec to not fail on other days of the week. --- spec/slack-sup/commands/stats_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/slack-sup/commands/stats_spec.rb b/spec/slack-sup/commands/stats_spec.rb index f5dd361..ec516d8 100644 --- a/spec/slack-sup/commands/stats_spec.rb +++ b/spec/slack-sup/commands/stats_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe SlackSup::Commands::Stats do - let(:team) { Fabricate(:team, subscribed: true) } + let(:team) { Fabricate(:team, sup_wday: Date::MONDAY, subscribed: true) } let(:app) { SlackSup::Server.new(team:) } let(:client) { app.send(:client) } @@ -13,7 +13,6 @@ end context 'with outcomes' do - let(:team) { Fabricate(:team, subscribed: true) } let!(:user1) { Fabricate(:user, team:) } let!(:user2) { Fabricate(:user, team:) } let!(:user3) { Fabricate(:user, team:) }