lib/assets/javascripts/opal/spec/matchers.rb in opal-spec-0.2.12 vs lib/assets/javascripts/opal/spec/matchers.rb in opal-spec-0.2.13
- old
+ new
@@ -1,15 +1,9 @@
-module OpalTest
- class Matcher
- def initialize(actual)
- @actual = actual
- end
+require 'opal/spec/matchers/base'
+require 'opal/spec/matchers/be_empty'
+require 'opal/spec/matchers/respond_to'
- def failure(message)
- raise Spec::ExpectationNotMetError, message
- end
- end
-
+module OpalTest
class PositiveOperatorMatcher < Matcher
def == expected
if @actual == expected
true
else