Sha256: e906de7ee886e363266550deb931457990c2da6d43419afb91d8b9d023846c6f

Contents?: true

Size: 289 Bytes

Versions: 17

Compression:

Stored size: 289 Bytes

Contents

module RSpec
  module Matchers

    private

    def method_missing(method, *args, &block)
      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

17 entries across 15 versions & 4 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb
horseman-0.0.2 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
rspec-expectations-2.8.0 lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
rspec-expectations-2.8.0.rc2 lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb
rspec-expectations-2.8.0.rc1 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.7.0 lib/rspec/matchers/method_missing.rb