lib/arrthorizer/rspec.rb in arrthorizer-0.1.3 vs lib/arrthorizer/rspec.rb in arrthorizer-0.2.0
- old
+ new
@@ -1,16 +1,20 @@
require 'rspec/expectations'
module Arrthorizer
module RSpec
- autoload :Matchers, 'arrthorizer/rspec/matchers'
+ autoload :Matchers, 'arrthorizer/rspec/matchers'
+ autoload :SharedExamples, 'arrthorizer/rspec/shared_examples'
end
- ::RSpec.configure do |config|
- config.include Arrthorizer::RSpec::Matchers::Roles, {
+ role_spec = {
type: :role,
example_group: { file_path: %r(spec/roles) }
}
+
+ ::RSpec.configure do |config|
+ config.include Arrthorizer::RSpec::Matchers::Roles, role_spec
+ config.include Arrthorizer::RSpec::SharedExamples, role_spec
end
end