Skip to content

Instantly share code, notes, and snippets.

@roberto
Created March 9, 2012 02:30
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 roberto/2004677 to your computer and use it in GitHub Desktop.
Save roberto/2004677 to your computer and use it in GitHub Desktop.
minitest-rails and capybara working like a charm
# you should use this branch until related pull request has been accepted
# https://github.com/blowmage/minitest-rails/pull/19
group :development, :test do
gem 'minitest-rails', git: "git@github.com:rawongithub/minitest-rails.git", branch: "gemspec"
end
group :test do
gem 'capybara'
gem 'capybara_minitest_spec'
gem 'turn'
end
# this file is generated by: rails g mini_test:install
(...)
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'capybara/rails' #!!!should be placed after requiring environment file
(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment