lib/rspec/mocks/verifying_message_expecation.rb in rspec-mocks-3.0.0.beta2 vs lib/rspec/mocks/verifying_message_expecation.rb in rspec-mocks-3.0.0.rc1

- old
+ new

@@ -1,6 +1,6 @@ -require 'rspec/mocks/method_signature_verifier' +RSpec::Support.require_rspec_support 'method_signature_verifier' module RSpec module Mocks # A message expectation that knows about the real implementation of the @@ -21,11 +21,11 @@ def initialize(*args) super end - # @override + # @private def with(*args, &block) unless ArgumentMatchers::AnyArgsMatcher === args.first expected_args = if ArgumentMatchers::NoArgsMatcher === args.first [] elsif args.length > 0 @@ -44,10 +44,10 @@ def validate_arguments!(actual_args) return if method_reference.nil? method_reference.with_signature do |signature| - verifier = MethodSignatureVerifier.new(signature, actual_args) + verifier = Support::MethodSignatureVerifier.new(signature, actual_args) unless verifier.valid? # Fail fast is required, otherwise the message expecation will fail # as well ("expected method not called") and clobber this one. @failed_fast = true @error_generator.raise_invalid_arguments_error(verifier)