Skip to content

Commit 985ddda

Browse files
committed
Add acceptance to RSpec::Rails::DIRECTORY_MAPPINGS
1 parent a282560 commit 985ddda

File tree

1 file changed

+5
-0
lines changed
  • lib/rspec_api_documentation

1 file changed

+5
-0
lines changed

lib/rspec_api_documentation/dsl.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ def resource(*args, &block)
3535
RSpec.configuration.include RspecApiDocumentation::DSL::Endpoint, :api_doc_dsl => :endpoint
3636
RSpec.configuration.include RspecApiDocumentation::DSL::Callback, :api_doc_dsl => :callback
3737
RSpec.configuration.backtrace_exclusion_patterns << %r{lib/rspec_api_documentation/dsl/}
38+
39+
if defined? RSpec::Rails
40+
RSpec::Rails::DIRECTORY_MAPPINGS[:acceptance] = %w[spec acceptance]
41+
RSpec.configuration.infer_spec_type_from_file_location!
42+
end

0 commit comments

Comments
 (0)