Sha256: edb130b864854fb9db5480386c8e112e4f0572c252ff766b6add41e3602bcc0e

Contents?: true

Size: 732 Bytes

Versions: 53

Compression:

Stored size: 732 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")

module RR
  module WildcardMatchers
    describe Numeric do
      attr_reader :matcher
      before do
        @matcher = Numeric.new
      end

      describe "#wildcard_match?" do
        context "when passed a Numeric" do
          it "returns true" do
            matcher.should be_wildcard_match(99)
          end
        end

        context "when not passed a Numeric" do
          it "returns false" do
            matcher.should_not be_wildcard_match(:not_a_numeric)
          end
        end
      end

      describe "#inspect" do
        it "returns numeric" do
          matcher.inspect.should == "numeric"
        end
      end
    end
  end
end

Version data entries

53 entries across 49 versions & 9 rubygems

Version Path
bitclust-core-0.5.1 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/spec/rr/wildcard_matchers/numeric_spec.rb
mcmire-rr-1.0.5.rc1 spec/rr/wildcard_matchers/numeric_spec.rb
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
rr-1.0.4 spec/rr/wildcard_matchers/numeric_spec.rb
rr-1.0.3 spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rr-1.0.2/spec/rr/wildcard_matchers/numeric_spec.rb
rr-1.0.2 spec/rr/wildcard_matchers/numeric_spec.rb
rr-1.0.1 spec/rr/wildcard_matchers/numeric_spec.rb
rr-1.0.0 spec/rr/wildcard_matchers/numeric_spec.rb
rr-0.10.11 spec/rr/wildcard_matchers/numeric_spec.rb
rr-0.10.10 spec/rr/wildcard_matchers/numeric_spec.rb
rr-0.10.9 spec/rr/wildcard_matchers/numeric_spec.rb
rr-0.10.8 spec/rr/wildcard_matchers/numeric_spec.rb