lib/pundit/rspec.rb in pundit-2.1.0 vs lib/pundit/rspec.rb in pundit-2.1.1
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
-require "active_support/core_ext/array/conversions"
-
module Pundit
module RSpec
module Matchers
extend ::RSpec::Matchers::DSL
@@ -72,19 +70,11 @@
end
end
end
RSpec.configure do |config|
- if RSpec::Core::Version::STRING.split(".").first.to_i >= 3
- config.include(
- Pundit::RSpec::PolicyExampleGroup,
- type: :policy,
- file_path: %r{spec/policies}
- )
- else
- config.include(
- Pundit::RSpec::PolicyExampleGroup,
- type: :policy,
- example_group: { file_path: %r{spec/policies} }
- )
- end
+ config.include(
+ Pundit::RSpec::PolicyExampleGroup,
+ type: :policy,
+ file_path: %r{spec/policies}
+ )
end