diff --git a/lib/rspec_api_documentation/dsl.rb b/lib/rspec_api_documentation/dsl.rb index 646337ab..b0a7f91a 100644 --- a/lib/rspec_api_documentation/dsl.rb +++ b/lib/rspec_api_documentation/dsl.rb @@ -36,7 +36,7 @@ def resource(*args, &block) RSpec.configuration.include RspecApiDocumentation::DSL::Callback, :api_doc_dsl => :callback RSpec.configuration.backtrace_exclusion_patterns << %r{lib/rspec_api_documentation/dsl/} -if defined? RSpec::Rails +if defined? RSpec::Rails::DIRECTORY_MAPPINGS RSpec::Rails::DIRECTORY_MAPPINGS[:acceptance] = %w[spec acceptance] RSpec.configuration.infer_spec_type_from_file_location! end