Sha256: 0261bec227494529dd23a54c649a37d83cbefb422ef9165f461acb0ac74d2aa2

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

module Spec
  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

6 entries across 6 versions & 3 rubygems

Version Path
rspec-instructure-1.3.3 lib/spec/matchers/method_missing.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/matchers/method_missing.rb
rspec-1.3.2 lib/spec/matchers/method_missing.rb
rspec-1.3.1 lib/spec/matchers/method_missing.rb
rspec-1.3.1.rc lib/spec/matchers/method_missing.rb
rspec-1.3.0 lib/spec/matchers/method_missing.rb