We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81f37bc + 985ddda commit ec070a0Copy full SHA for ec070a0
lib/rspec_api_documentation/dsl.rb
@@ -35,3 +35,8 @@ def resource(*args, &block)
35
RSpec.configuration.include RspecApiDocumentation::DSL::Endpoint, :api_doc_dsl => :endpoint
36
RSpec.configuration.include RspecApiDocumentation::DSL::Callback, :api_doc_dsl => :callback
37
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