1 2 3 4 5 6 7 8 |
# 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 :one_more_than do |expected| match do |actual| actual == expected + 1 end end |

