lib/anyway/testing.rb in anyway_config-2.4.1 vs lib/anyway/testing.rb in anyway_config-2.4.2
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
require "anyway/testing/helpers"
-if defined?(RSpec::Core)
+if defined?(RSpec::Core) && RSpec.respond_to?(:configure)
RSpec.configure do |config|
config.include(
Anyway::Testing::Helpers,
type: :config,
file_path: %r{spec/configs}