Skip to content

Commit

Permalink
Fix stubbed event classes
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest committed Dec 7, 2024
1 parent 293ebda commit 6ad1812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
let(:organization) { create(:organization) }

describe "::types_for_select" do
let(:event_a) { Class.new }
let(:event_z) { Class.new }
let(:a_event) { Class.new { def self.name = "AEvent" } }
let(:z_event) { Class.new { def self.name = "ZEvent" } }

before do
allow(described_class).to receive(:descendants).and_return([event_z, event_a])
allow(described_class).to receive(:descendants).and_return([z_event, a_event])
end

it "returns an array of ids and names" do
Expand Down

0 comments on commit 6ad1812

Please sign in to comment.