Sha256: b826e5aae65a8a2781a43633339b99a70dfeb7a85c871f5a8044a493ea472362
Contents?: true
Size: 877 Bytes
Versions: 3
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true require 'fix' # Namespace for the Fix framework. # module Fix # Wraps the target of an expectation. # class It # Create a new expection target given an object. # # @param object [#object_id] An object to test. # # @return [Expect] An expect instance. def expect(object) Expect.new(object, *challenges) end # Create a new expection target given a block. # # @param block [Proc] A code to test. # # @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 # rubocop:enable PredicateName end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fix-expect-0.3.5 | lib/fix/it.rb |
fix-expect-0.3.4 | lib/fix/it.rb |
fix-expect-0.3.3 | lib/fix/it.rb |