spec/cucumber/ast/feature_factory.rb in cucumber-0.3.95 vs spec/cucumber/ast/feature_factory.rb in cucumber-0.3.96
- old
+ new
@@ -8,17 +8,16 @@
def flunk
raise "I flunked"
end
end
- def create_feature(step_mother)
- step_mother.extend(StepMother)
- step_mother.Given /^a (.*) step with an inline arg:$/ do |what, table|
+ def create_feature(dsl)
+ dsl.Given /^a (.*) step with an inline arg:$/ do |what, table|
end
- step_mother.Given /^a (.*) step$/ do |what|
+ dsl.Given /^a (.*) step$/ do |what|
flunk if what == 'failing'
end
- step_mother.World do
+ dsl.World do
MyWorld.new
end
table = Ast::Table.new([
%w{1 22 333},
\ No newline at end of file