Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
minimal rspec-capybara-mechanize env
# -*- mode: ruby -*-
source :rubygems
gem 'rake'
gem 'rspec'
gem 'capybara', '< 2'
gem 'capybara-mechanize'
# -*- mode: ruby -*-
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec:requests') do |config|
config.pattern = 'spec/requests/**/*_spec.rb'
end
require "capybara/rspec"
require "capybara/mechanize"
Capybara.default_driver = :mechanize
Capybara.app_host = %q{your test server}
begin
include Capybara::DSL
rescue
include Capybara
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment