Use ## to create sections (Learn more)
# This is in 1.2.0 with Spec::Matchers.create but it's changing to
# Spec::Matchers.define in 1.2.3. Spec::Matchers.create will remain
# supported, but deprecated, until 1.3.
Spec::Matchers.define :one_more_than do |expected|
match do |actual|
actual == expected + 1
Share the private access URL responsibly.
Anyone will be able to find and view this paste. Google will index it.
With great power comes great responsibility.Pastie wisely.