Sha256: 1056e85896687e3a41e7e8aa8e5093853d363db5310eda89307fc0d01e699cfb

Contents?: true

Size: 244 Bytes

Versions: 32

Compression:

Stored size: 244 Bytes

Contents

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

32 entries across 32 versions & 7 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.13 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.2 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.3 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.4 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.5 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.6 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.7 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.8 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.99.9 lib/spec/matchers/method_missing.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/matchers/method_missing.rb