From 2990a10867eb006e1c63325ca2a47a520432c3f1 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Mon, 26 Nov 2012 22:43:59 +0900 Subject: [PATCH] compatible for capybara-2.0.0 later. --- spec/spec_helper.rb | 1 + spec/spec_helper_for_sinatra.rb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7e95c44..3063a26 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,6 +9,7 @@ end require 'bundler/setup' Bundler.require +require 'capybara/rspec' require 'database_cleaner' # Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded. diff --git a/spec/spec_helper_for_sinatra.rb b/spec/spec_helper_for_sinatra.rb index 91c6169..ae694c5 100644 --- a/spec/spec_helper_for_sinatra.rb +++ b/spec/spec_helper_for_sinatra.rb @@ -1,7 +1,6 @@ require 'kaminari/sinatra' require 'rack/test' require 'sinatra/test_helpers' -require 'capybara/dsl' require 'capybara/rspec' require 'fake_app/sinatra_app' @@ -24,7 +23,6 @@ end RSpec.configure do |config| config.include Rack::Test::Methods config.include Sinatra::TestHelpers - config.include Capybara::DSL config.include HelperMethodForHelperSpec # config.include HelperMethodForHelperSpec, :type => :helper end