Flowdock
method

constraint_for

Importance_0
1.1.12 - Show latest stable - 0 notes - Class: Spec::Mocks::ArgumentExpectation
constraint_for(arg) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/mocks/argument_expectation.rb, line 20
      def constraint_for(arg)
        return ArgumentConstraints::MatcherConstraint.new(arg)   if is_matcher?(arg)
        return ArgumentConstraints::RegexpConstraint.new(arg) if arg.is_a?(Regexp)
        return ArgumentConstraints::EqualityProxy.new(arg)
      end
Register or log in to add new notes.