Sha256: c422861164a5a6305ba3b806b3a3d1b4bc145a3b05b9ca38c3e531fc5a734a03
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 Bytes
Contents
module Spec module Expectations class PositiveExpectationHandler def self.handle_matcher(actual, matcher, message, &block) Spec::Matchers.last_should = :should Spec::Matchers.last_matcher = matcher if matcher.nil? return Spec::Matchers::PositiveOperatorMatcher.new actual end end end class NegativeExpectationHandler def self.handle_matcher(actual, matcher, message, &block) Spec::Matchers.last_should = :should_not Spec::Matchers.last_matcher = matcher if matcher.nil? return Spec::Matchers::NegativeOperatorMatcher.new actual end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.2 | gems/ospec/lib/ospec/expectations/handler.rb |
opal-0.3.1 | gems/ospec/lib/ospec/expectations/handler.rb |
opal-0.3.0 | gems/ospec/lib/ospec/expectations/handler.rb |