Skip to content

Commit

Permalink
Type is now always feature, which matches Capybara 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Sep 9, 2012
1 parent 63139f0 commit 1ac5f66
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions lib/turnip.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/turnip/builder.rb
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions 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]
Expand Down

0 comments on commit 1ac5f66

Please sign in to comment.