Sha256: a714a7a4c031953a12764fd08ed47cb08b62881ac64e4ae78391e6cd097d9160

Contents?: true

Size: 235 Bytes

Versions: 12

Compression:

Stored size: 235 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
spicycode-micronaut-0.2.1.6 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.10 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.2 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.3 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.4 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.5 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.7 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.8 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.2.9 lib/micronaut/matchers/method_missing.rb
spicycode-micronaut-0.3.0 lib/micronaut/matchers/method_missing.rb
micronaut-0.3.0 lib/micronaut/matchers/method_missing.rb
micronaut-0.2.9 lib/micronaut/matchers/method_missing.rb