lib/fix/it.rb in fix-expect-0.1.0 vs lib/fix/it.rb in fix-expect-0.2.0
- old
+ new
@@ -21,7 +21,16 @@
#
# @return [Expect] An expect instance.
def expect_block(&block)
Expect.new(block, *([block_challenge] + challenges))
end
+
+ # rubocop:disable PredicateName
+
+ # Create a new expection target given the subject.
+ #
+ # @return [Expect] An expect instance.
+ def is_expected
+ Expect.new(subject, *challenges)
+ end
end
end