Sha256: a0b16dca2bc46fd4717a3ef7e4c256dc710e57e695baf088cc35dc276e0299e8

Contents?: true

Size: 270 Bytes

Versions: 16

Compression:

Stored size: 270 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.beta.8 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.7 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.6 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.5 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.4 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.3 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.2 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.beta.1 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a10 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a9 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a8 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a7 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a6 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a5 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a4 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a3 lib/rspec/matchers/method_missing.rb