Skip to content

Commit

Permalink
Fix configurators spec
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Sep 28, 2023
1 parent 60abac5 commit 3987277
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/kangaru/configurators_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
end

context "when configurator classes are defined" do
before do
allow(described_class)
.to receive(:constants)
.and_return(%i[SomeConfigurator AnotherConfigurator])
end

around do |spec|
described_class.const_set(:SomeConfigurator, some_configurator)
described_class.const_set(:AnotherConfigurator, another_configurator)
Expand Down

0 comments on commit 3987277

Please sign in to comment.