Sha256: 7feb8b00a37ae39f8a88017a0a7bd27fbd4ec1320048284db20d2c83fa4d0a0c
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
module Matchy module ExpectationBuilder def self.build_expectation(should_succeed, matcher, object) return Matchy::Expectations::OperatorExpectation.new(object, should_succeed) unless matcher if should_succeed $current_test_case.assert_accepts(matcher, object) else $current_test_case.assert_rejects(matcher, object) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mcmire-matchy-0.5.2 | lib/matchy/expectation_builder.rb |
mcmire-matchy-0.5.1 | lib/matchy/expectation_builder.rb |