lib/assertion/inversion.rb in assertion-0.1.0 vs lib/assertion/inversion.rb in assertion-0.2.0
- old
+ new
@@ -3,17 +3,17 @@
module Assertion
# Describes the inversion of the assertion object
#
# The inversion decorates the source assertion switching its message
- # (from wrong to right) and reverting its `check`.
+ # (from falsey to truthy) and reverting its `check`.
#
# @example
- # Adult = Assertion.about :name, :age do
+ # IsAdult = Assertion.about :name, :age do
# age >= 18
# end
#
- # assertion = Adult.new
+ # assertion = IsAdult.new
# inversion = Inversion.new(assertion)
#
# assertion.call.valid? == inversion.call.invalid? # => true
#
# @api private