Skip to content

Commit ec070a0

Browse files
committed
Merge pull request #169 from potomak/acceptance_example_type
Add acceptance to RSpec::Rails::DIRECTORY_MAPPINGS
2 parents 81f37bc + 985ddda commit ec070a0

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

+5
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)