lib/hornsby.rb in sinsiliux-hornsby-0.2.1 vs lib/hornsby.rb in sinsiliux-hornsby-0.2.2

- old
+ new

@@ -51,11 +51,11 @@ def self.load(scenarios_file=nil) return unless @@scenarios.empty? delete_tables - scenarios_file ||= framework_root + '/spec/hornsby_scenarios.rb' + scenarios_file ||= File.join(framework_root, 'spec', 'hornsby_scenarios.rb') self.module_eval File.read(scenarios_file) end def self.scenario(scenario, &block) self.new(scenario, &block) @@ -106,10 +106,10 @@ build_scenario(@@context) self end def build_scenario(context) - surface_errors { context.execute(@@context == @@global_context, &@block) } unless @@executed_scenarios.include?(@scenario) + surface_errors { context.execute(&@block) } unless @@executed_scenarios.include?(@scenario) @@executed_scenarios << @scenario end def build_parent_scenarios(context) @parents.each do |p| \ No newline at end of file