class RSpec::ChangeToNow::Matchers::AsMatcher
Decorator that wraps a matcher and raises a syntax error if the matcher is not a matcher.
@api private
Public Class Methods
new(expected)
click to toggle source
Calls superclass method
# File lib/rspec/change_to_now/matchers/as_matcher.rb, line 12 def initialize(expected) expected = RSpec::Matchers::BuiltIn::Match.new(expected) unless RSpec::Matchers.is_a_matcher?(expected) super(expected) end