Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created April 20, 2012 07:57
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 wtnabe/2426993 to your computer and use it in GitHub Desktop.
Save wtnabe/2426993 to your computer and use it in GitHub Desktop.
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