lib/cucumber/rb_support/rb_language.rb in cucumber-1.1.2 vs lib/cucumber/rb_support/rb_language.rb in cucumber-1.1.3

- old
+ new

@@ -63,23 +63,9 @@ @rspec_matchers = Module.new{} end end end - # Gets called for each file under features (or whatever is overridden - # with --require). - def step_definitions_for(rb_file) # Looks Unused - Delete? - begin - require rb_file # This will cause self.add_step_definition and self.add_hook to be called from RbDsl - step_definitions - rescue LoadError => e - e.message << "\nFailed to load #{code_file}" - raise e - ensure - @step_definitions = nil - end - end - def step_matches(name_to_match, name_to_format) @step_definitions.map do |step_definition| if(arguments = step_definition.arguments_from(name_to_match)) StepMatch.new(step_definition, name_to_match, name_to_format, arguments) else