lib/rspec/power_assert.rb in rspec-power_assert-0.1.1 vs lib/rspec/power_assert.rb in rspec-power_assert-0.2.0
- old
+ new
@@ -2,11 +2,11 @@
require "rspec/core"
require "power_assert"
module PowerAssert
class << self
- def rspec_start(assertion_proc, assertion_method: nil)
- yield RSpecContext.new(assertion_proc, assertion_method)
+ def rspec_start(assertion_proc, assertion_method: nil, source_binding: TOPLEVEL_BINDING)
+ yield RSpecContext.new(assertion_proc, assertion_method, source_binding)
end
end
class RSpecContext < Context
# hack for context changing