Skip to content

Commit b05b690

Browse files
committed
Merge pull request #257 from ianks/master
Ensure that DIRECTORY_MAPPINGS is available
2 parents 212112e + 8f4b39d commit b05b690

File tree

1 file changed

+1
-1
lines changed
  • lib/rspec_api_documentation

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def resource(*args, &block)
3636
RSpec.configuration.include RspecApiDocumentation::DSL::Callback, :api_doc_dsl => :callback
3737
RSpec.configuration.backtrace_exclusion_patterns << %r{lib/rspec_api_documentation/dsl/}
3838

39-
if defined? RSpec::Rails
39+
if defined? RSpec::Rails::DIRECTORY_MAPPINGS
4040
RSpec::Rails::DIRECTORY_MAPPINGS[:acceptance] = %w[spec acceptance]
4141
RSpec.configuration.infer_spec_type_from_file_location!
4242
end

0 commit comments

Comments
 (0)