Sha256: 169a5f9700668f2c932f43461116dd147358dbbe1d81051f8b233c9e4c5343ba

Contents?: true

Size: 518 Bytes

Versions: 12

Compression:

Stored size: 518 Bytes

Contents

require "simplecov"
require "ama_layout"
require "pry"
require "rspec/rails"
require "combustion"

ENV["RAILS_ENV"] ||= "test"

Combustion.initialize! :all

Dir["./spec/support/**/*.rb"].sort.each { |file| require file }

ActionView::TestCase::TestController.instance_eval do
  helper Rails.application.routes.url_helpers
end

ActionView::TestCase::TestController.class_eval do
  def _routes
    Rails.application.routes
  end
end

RSpec.configure do |config|
  config.include Rails.application.routes.url_helpers
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ama_layout-2.0.3 spec/spec_helper.rb
ama_layout-2.0.2 spec/spec_helper.rb
ama_layout-2.0.0 spec/spec_helper.rb
ama_layout-1.1.25 spec/spec_helper.rb
ama_layout-1.1.24 spec/spec_helper.rb
ama_layout-1.1.23 spec/spec_helper.rb
ama_layout-1.1.22 spec/spec_helper.rb
ama_layout-1.1.21 spec/spec_helper.rb
ama_layout-1.1.20 spec/spec_helper.rb
ama_layout-1.1.15 spec/spec_helper.rb
ama_layout-1.1.14 spec/spec_helper.rb
ama_layout-1.1.13 spec/spec_helper.rb