Sha256: 25c7db33fe2f734933e9ba09455c4abeab36625a0b639a82ac2813aacae72ad3

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

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

Konacha.configure do |config|
  # We don't have an application.css in our dummy app.
  config.stylesheets = []
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
konacha-2.1.0 spec/spec_helper.rb
konacha-2.0.0 spec/spec_helper.rb
konacha-2.0.0.beta3 spec/spec_helper.rb
konacha-2.0.0.beta2 spec/spec_helper.rb
konacha-2.0.0.beta1 spec/spec_helper.rb