Skip to content

Commit

Permalink
Fix spec to not fail on other days of the week.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Oct 28, 2024
1 parent 47b2c86 commit 42b8613
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/slack-sup/commands/stats_spec.rb
Original file line number Diff line number Diff line change
@@ -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) }

Expand All @@ -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:) }
Expand Down

0 comments on commit 42b8613

Please sign in to comment.