Skip to content

Commit

Permalink
Merge pull request #257 from ianks/master
Browse files Browse the repository at this point in the history
Ensure that DIRECTORY_MAPPINGS is available
  • Loading branch information
oestrich committed Jan 28, 2016
2 parents 212112e + 8f4b39d commit b05b690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b05b690

Please sign in to comment.