lib/cucumber/glue/world_factory.rb in cucumber-3.2.0 vs lib/cucumber/glue/world_factory.rb in cucumber-4.0.0.rc.1
- old
+ new
@@ -8,10 +8,10 @@
def create_world
@proc.call || raise_nil_world
end
def raise_nil_world
- raise NilWorld.new
+ raise NilWorld
rescue NilWorld => e
e.backtrace.clear
e.backtrace.push(Glue.backtrace_line(@proc, 'World'))
raise e
end