lib/cucumber/rb_support/rb_language.rb in cucumber-0.5.3 vs lib/cucumber/rb_support/rb_language.rb in cucumber-0.6.0

- old
+ new

@@ -119,10 +119,10 @@ @world_modules ||= [] @world_modules += world_modules end def load_code_file(code_file) - require code_file # This will cause self.add_step_definition, self.add_hook, and self.add_transform to be called from RbDsl + require 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)