set rspec type to :feature instead #809

Merged
merged 1 commit into from Sep 9, 2012
View
@@ -5,10 +5,8 @@
require 'capybara/rspec/features'
RSpec.configure do |config|
- config.include Capybara::DSL, :type => :request
- config.include Capybara::DSL, :type => :acceptance
- config.include Capybara::RSpecMatchers, :type => :request
- config.include Capybara::RSpecMatchers, :type => :acceptance
+ config.include Capybara::DSL, :type => :feature
+ config.include Capybara::RSpecMatchers, :type => :feature
# The before and after blocks must run instantaneously, because Capybara
# might not actually be used in all examples where it's included.
config.after do
@@ -12,7 +12,7 @@ def self.included(base)
def self.feature(*args, &block)
options = if args.last.is_a?(Hash) then args.pop else {} end
options[:capybara_feature] = true
- options[:type] = :request
+ options[:type] = :feature
options[:caller] ||= caller
args.push(options)
View
@@ -1,6 +1,6 @@
require 'spec_helper'
-describe 'capybara/rspec', :type => :request do
+describe 'capybara/rspec', :type => :feature do
it "should include Capybara in rspec" do
visit('/foo')
page.body.should include('Another World')