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

Version Path
konacha-1.5.1 spec/spec_helper.rb
konacha-1.5.0 spec/spec_helper.rb
konacha-1.4.2 spec/spec_helper.rb
konacha-1.4.1 spec/spec_helper.rb
konacha-1.4.0 spec/spec_helper.rb
konacha-1.3.1 spec/spec_helper.rb
konacha-1.3.0 spec/spec_helper.rb
konacha-1.2.4 spec/spec_helper.rb
konacha-1.2.3 spec/spec_helper.rb
konacha-1.2.2 spec/spec_helper.rb
konacha-1.2.1 spec/spec_helper.rb
konacha-1.2.0 spec/spec_helper.rb
konacha-1.1.3 spec/spec_helper.rb
konacha-1.1.2 spec/spec_helper.rb
konacha-1.1.1 spec/spec_helper.rb
konacha-1.1.0 spec/spec_helper.rb
konacha-1.0.0 spec/spec_helper.rb
konacha-1.0.0.rc1 spec/spec_helper.rb