From 7ab66c592e849b6cd0dfa6ad53bfb0e86122d7e7 Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Mon, 10 Apr 2023 15:43:25 -0400 Subject: [PATCH] Fix rspec check If you use rspec-rails, it's possible for `RSpec` to be defined, but not for RSpec.configure to be available yet. This explicitly checks for that method. --- lib/singed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/singed.rb b/lib/singed.rb index 31559df..f188995 100644 --- a/lib/singed.rb +++ b/lib/singed.rb @@ -53,4 +53,4 @@ def filter_line(line) require 'singed/kernel_ext' require 'singed/railtie' if defined?(Rails::Railtie) -require 'singed/rspec' if defined?(RSpec) +require 'singed/rspec' if defined?(RSpec) && RSpec.respond_to?(:configure)