Skip to content

Commit

Permalink
Merge pull request #816 from pat/patch-1
Browse files Browse the repository at this point in the history
Check existence of RSpec.configure for test helpers
  • Loading branch information
bkeepers authored Jan 12, 2024
2 parents 374040f + f8d8807 commit 8959098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flipper/test_help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def flipper_reset
end
end

if defined?(RSpec)
if defined?(RSpec) && RSpec.respond_to?(:configure)
RSpec.configure do |config|
config.include Flipper::TestHelp
config.before(:all) { flipper_configure }
Expand Down

0 comments on commit 8959098

Please sign in to comment.