Sha256: 4c93b9c0235815e87bae8850af88b2e5243e3be6b57b786af9ec721fab18c76e

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

require 'rspeckled/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 Rspeckled::NamespacedEngineControllerRouteFix, :type => :controller
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspeckled-0.0.3 lib/rspeckled/support/rails.rb
rspeckled-0.0.2 lib/rspeckled/support/rails.rb
rspeckled-0.0.1 lib/rspeckled/support/rails.rb