Sha256: 7efa5eac2fe3ebecfdad0dce071f853d7ccc97875e5d26837218428d6958fc22

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.a2 lib/rspec/matchers/method_missing.rb
rspec-expectations-2.0.0.a1 lib/rspec/matchers/method_missing.rb