Permalink
Browse files

Type is now always `feature`, which matches Capybara 2.0

  • Loading branch information...
1 parent 63139f0 commit 1ac5f668ae0bea91156410f131b60dcc0c223588 @jnicklas committed Sep 9, 2012
Showing with 1 addition and 9 deletions.
  1. +0 −6 lib/turnip.rb
  2. +1 −1 lib/turnip/builder.rb
  3. +0 −2 lib/turnip/capybara.rb
View
6 lib/turnip.rb
@@ -18,14 +18,8 @@ class Ambiguous < StandardError; end
#
module Steps
end
-
- class << self
- attr_accessor :type
- end
end
-Turnip.type = :turnip
-
Module.send(:include, Turnip::Define)
self.extend Turnip::DSL
View
2 lib/turnip/builder.rb
@@ -40,7 +40,7 @@ def line
end
def metadata_hash
- super.merge(:type => Turnip.type, :turnip => true)
+ super.merge(:type => :feature, :turnip => true)
end
end
View
2 lib/turnip/capybara.rb
@@ -1,7 +1,5 @@
require 'capybara/rspec'
-Turnip.type = :request
-
RSpec.configure do |config|
config.before do
if self.class.include?(Capybara::DSL) and example.metadata[:turnip]

0 comments on commit 1ac5f66

Please sign in to comment.