Sha256: dc1009d9acb954d4a424d8591282bd877b3f982aebf23768bce35f3b9c27be9f

Contents?: true

Size: 245 Bytes

Versions: 42

Compression:

Stored size: 245 Bytes

Contents

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

42 entries across 42 versions & 2 rubygems

Version Path
rsanheim-micronaut-0.1.3.2 lib/micronaut/matchers/method_missing.rb
rsanheim-micronaut-0.1.4.1 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.3 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.4 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.5 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.6 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.7 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.0.9 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.0 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.1 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.2 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.3 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.4.1 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.4.2 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.4.3 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.4.4 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.4 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.5.2 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.5 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.1.6.1 lib/micronaut/matchers/method_missing.rb