Sha256: 29c1d58e6dad9ea82c3a575e668ea7cdecac49efa89c86c2ff1a3e8585bdfcad

Contents?: true

Size: 299 Bytes

Versions: 11

Compression:

Stored size: 299 Bytes

Contents

module RSpec
  module Matchers

    private

    def method_missing(method, *args, &block) # :nodoc:
      return Matchers::BePredicate.new(method, *args, &block) if method.to_s =~ /^be_/
      return Matchers::Has.new(method, *args, &block) if method.to_s =~ /^have_/
      super
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rspec-expectations-2.7.0.rc1 lib/rspec/matchers/method_missing.rb
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb
rspec-expectations-2.6.0 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.6.0.rc6 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.6.0.rc4 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.6.0.rc2 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.5.0 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.4.0 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.3.0 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.2.0 lib/rspec/matchers/method_missing.rb