lib/cucumber/rb_support/rb_language.rb in cucumber-1.3.20 vs lib/cucumber/rb_support/rb_language.rb in cucumber-2.0.0.beta.1
- old
+ new
@@ -35,11 +35,10 @@
attr_reader :current_world,
:step_definitions
Gherkin::I18n.code_keywords.each do |adverb|
RbDsl.alias_adverb(adverb)
- RbWorld.alias_adverb(adverb)
end
def initialize(runtime)
@runtime = runtime
@step_definitions = []
@@ -55,13 +54,13 @@
nil
end
end.compact
end
- def snippet_text(code_keyword, step_name, multiline_arg_class, snippet_type = :regexp)
+ def snippet_text(code_keyword, step_name, multiline_arg, snippet_type = :regexp)
snippet_class = typed_snippet_class(snippet_type)
- snippet_class.new(code_keyword, step_name, multiline_arg_class).to_s
+ snippet_class.new(code_keyword, step_name, multiline_arg).to_s
end
def begin_rb_scenario(scenario)
create_world
extend_world
@@ -92,11 +91,9 @@
end
def load_code_file(code_file)
load File.expand_path(code_file) # This will cause self.add_step_definition, self.add_hook, and self.add_transform to be called from RbDsl
end
-
- protected
def begin_scenario(scenario)
begin_rb_scenario(scenario)
end