Sha256: 558495959a30bbe64118e8e3fffe039a01f638a0ace5bf5b0730e88e499de186
Contents?: true
Size: 941 Bytes
Versions: 18
Compression:
Stored size: 941 Bytes
Contents
# In a real-world app, `rake konacha:serve` and `rake konacha:run` will use # the development environment, so we test with the development defaults. # In particular, it is important to test with `config.assets.debug = true`. ENV["RAILS_ENV"] = "development" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rspec/rails" require "rspec/autorun" # Preload to avoid occasional tilt warnings about thread safety require "coffee_script" require "ejs" require "capybara/rails" require "capybara/firebug" Capybara.configure do |config| config.default_selector = :css config.default_driver = :selenium_with_firebug config.app = Konacha.application end module Konacha module RequestSpec def app # Override the RSpec default of `Rails.application`. Konacha.application end end end RSpec.configure do |config| config.include Konacha::RequestSpec, :type => :request end
Version data entries
18 entries across 18 versions & 1 rubygems