Skip to content

Commit

Permalink
Merge pull request #169 from potomak/acceptance_example_type
Browse files Browse the repository at this point in the history
Add acceptance to RSpec::Rails::DIRECTORY_MAPPINGS
  • Loading branch information
oestrich committed Nov 12, 2014
2 parents 81f37bc + 985ddda commit ec070a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rspec_api_documentation/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ def resource(*args, &block)
RSpec.configuration.include RspecApiDocumentation::DSL::Endpoint, :api_doc_dsl => :endpoint
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
RSpec::Rails::DIRECTORY_MAPPINGS[:acceptance] = %w[spec acceptance]
RSpec.configuration.infer_spec_type_from_file_location!
end

0 comments on commit ec070a0

Please sign in to comment.