RailsCasts Pro episodes are now free!

Learn more or hide this

Jordan Brock's Profile

GitHub User: jordanbrock

Site: http://jordanbrock.com

Comments by Jordan Brock

Avatar

Just a quick follow up, minitest-rails-capybara is working now.

Avatar

As of the latest (07/07/2012) version of minitest-rails you don't need to create an Integration class and register it with MiniTest::Spec.

If you want to use Rails routing and/or Capybara matchers, you still need to include them. Like so:

ruby
Class MiniTest::Rails::ActionDispatch::IntegrationTest
  include Rails.application.routes.url_helpers
  include Capybara::DSL
  include Capybara::RSpecMatchers
end

blowmage also has a minitest-rails-capybara that obviates the need to even do the above. However, I haven't been able to get it to work as of yet. It was only released today, so there's no point in being too picky :)