Sha256: c2b457a7b9eafec6a8bf3b242dc1ab9b67821c9c9d6d9967c1bac3b8c8c74a3b

Contents?: true

Size: 448 Bytes

Versions: 16

Compression:

Stored size: 448 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 File.join(Dir.pwd, 'spec', 'dummy', 'config', 'environment')
      config.include RSpectacular::NamespacedEngineControllerRouteFix, :type => :controller
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rspectacular-0.53.1 lib/rspectacular/support/rails.rb
rspectacular-0.53.0 lib/rspectacular/support/rails.rb
rspectacular-0.52.0 lib/rspectacular/support/rails.rb
rspectacular-0.51.0 lib/rspectacular/support/rails.rb
rspectacular-0.50.0 lib/rspectacular/support/rails.rb
rspectacular-0.49.0 lib/rspectacular/support/rails.rb
rspectacular-0.48.0 lib/rspectacular/support/rails.rb
rspectacular-0.47.0 lib/rspectacular/support/rails.rb
rspectacular-0.46.0 lib/rspectacular/support/rails.rb
rspectacular-0.45.0 lib/rspectacular/support/rails.rb
rspectacular-0.44.0 lib/rspectacular/support/rails.rb
rspectacular-0.43.0 lib/rspectacular/support/rails.rb
rspectacular-0.42.0 lib/rspectacular/support/rails.rb
rspectacular-0.41.0 lib/rspectacular/support/rails.rb
rspectacular-0.40.0 lib/rspectacular/support/rails.rb
rspectacular-0.39.0 lib/rspectacular/support/rails.rb