Sha256: fd0609d58356ce63e59aff12e19fa8943d53bef63ed8ac1e6fc1f3e9508f7d7b

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 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.rb').exist?
      config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspectacular-0.70.8 lib/rspectacular/support/rails.rb
rspectacular-0.70.7 lib/rspectacular/support/rails.rb
rspectacular-0.70.6 lib/rspectacular/support/rails.rb
rspectacular-0.62.0 lib/rspectacular/support/rails.rb
rspectacular-0.61.0 lib/rspectacular/support/rails.rb
rspectacular-0.60.0 lib/rspectacular/support/rails.rb
rspectacular-0.59.0 lib/rspectacular/support/rails.rb