Sha256: d21656a134f88f40580efd89467fc4705938b57253979f668658350f067bc94b

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

require 'rspectacular/plugins/rails/engine'

if defined? RSpec::Rails
  RSpec.configure do |config|
    config.infer_base_class_for_anonymous_controllers = true

    config.infer_spec_type_from_file_location! if config.respond_to?(:infer_spec_type_from_file_location!)

    if Pathname.pwd.join('spec', 'dummy', 'config', 'environment').exist?
      config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspectacular-0.58.0 lib/rspectacular/support/rails.rb
rspectacular-0.57.0 lib/rspectacular/support/rails.rb