Skip to content

Instantly share code, notes, and snippets.

@Pistos
Created July 27, 2012 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pistos/3186153 to your computer and use it in GitHub Desktop.
Save Pistos/3186153 to your computer and use it in GitHub Desktop.
require_relative '../app'
require_relative 'factories'
require 'capybara/rspec'
Capybara.configure do |config|
# config.default_driver = :rack_test
config.default_driver = :selenium
config.app = Ramaze.middleware
end
# For in-browser testing:
::Capybara.default_driver = :selenium
# ::Capybara.current_driver = ::Capybara.javascript_driver
::Capybara.current_driver = :selenium
Ramaze.setup_dependencies
Ramaze.options.roots << File.expand_path(File.dirname(__FILE__))
# Ramaze.options.mode = :dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment