Sha256: 87db28f1ebe3ea459684dbea197e1603671dd49a740ff821c5cbbfa2a700bd16

Contents?: true

Size: 657 Bytes

Versions: 83

Compression:

Stored size: 657 Bytes

Contents

require "simplecov"
require "factory_girl"
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 }

FactoryGirl.find_definitions

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

Draper::ViewContext.test_strategy :fast

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

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
ama_layout-6.3.0.pre spec/spec_helper.rb
ama_layout-5.2.0 spec/spec_helper.rb
ama_layout-5.1.1 spec/spec_helper.rb
ama_layout-5.1.0 spec/spec_helper.rb
ama_layout-5.0.2 spec/spec_helper.rb
ama_layout-5.0.1 spec/spec_helper.rb
ama_layout-5.0.0 spec/spec_helper.rb
ama_layout-4.10.1 spec/spec_helper.rb
ama_layout-4.10.0 spec/spec_helper.rb
ama_layout-4.9.0 spec/spec_helper.rb
ama_layout-4.8.7 spec/spec_helper.rb
ama_layout-4.8.6 spec/spec_helper.rb
ama_layout-4.8.5 spec/spec_helper.rb
ama_layout-4.8.4 spec/spec_helper.rb
ama_layout-4.8.3 spec/spec_helper.rb
ama_layout-4.8.2 spec/spec_helper.rb
ama_layout-4.8.1 spec/spec_helper.rb
ama_layout-4.8.0 spec/spec_helper.rb
ama_layout-4.7.1 spec/spec_helper.rb
ama_layout-4.7.0 spec/spec_helper.rb