Sha256: 50abd73a29a9202e53fd344a68096ef8b36e8dac3c6a09d0c011604c6194c68e

Contents?: true

Size: 240 Bytes

Versions: 18

Compression:

Stored size: 240 Bytes

Contents

module Spec
  module Matchers
    def method_missing(sym, *args, &block) # :nodoc:
      return Matchers::Be.new(sym, *args) if sym.starts_with?("be_")
      return has(sym, *args) if sym.starts_with?("have_")
      super
    end
  end
end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
dchelimsky-rspec-1.1.11.1 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.2 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.3 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.4 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.5 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.6 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.11.7 lib/spec/matchers/method_missing.rb
dchelimsky-rspec-1.1.12 lib/spec/matchers/method_missing.rb
newbamboo-evented-rspec-1.1.12 lib/spec/matchers/method_missing.rb
newbamboo-rspec-1.1.12 lib/spec/matchers/method_missing.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/matchers/method_missing.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/matchers/method_missing.rb
rspec-1.1.12 lib/spec/matchers/method_missing.rb
spree-0.6.0 vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
spree-0.7.1 vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
spree-0.7.0 vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
spree-0.8.0 vendor/plugins/rspec/lib/spec/matchers/method_missing.rb
spree-0.8.1 vendor/plugins/rspec/lib/spec/matchers/method_missing.rb