Sha256: d8d658336b9ee3e815076b931a452a85ab1600506a49bdd093833a1493d53108

Contents?: true

Size: 704 Bytes

Versions: 29

Compression:

Stored size: 704 Bytes

Contents

module Spec
  module Matchers
    module SpecExtensions
      class HavePackage < SpecExtensionsBase
        def initialize(expected,extra="")
          @expected = expected
          @extra = extra
        end
        def matches?(target)
          @target = target
          is_present?
        end
        def failure_message
          "expected #{@target.inspect} to have package #{@expected}"
        end
        def negative_failure_message
          "expected #{@target.inspect} not to have package #{@expected}"
        end
        def type
          "package"
        end
      end
    end
    def have_package(name, extra="")
      SpecExtensions::HavePackage.new(name, extra)
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
auser-poolparty-1.1.3 lib/poolparty/spec/matchers/have_package.rb
auser-poolparty-1.1.4 lib/poolparty/spec/matchers/have_package.rb
auser-poolparty-1.1.5 lib/poolparty/spec/matchers/have_package.rb
auser-poolparty-1.1.6 lib/poolparty/spec/matchers/have_package.rb
auser-poolparty-1.1.7 lib/poolparty/spec/matchers/have_package.rb
fairchild-poolparty-1.1.3 lib/poolparty/spec/matchers/have_package.rb
fairchild-poolparty-1.1.4 lib/poolparty/spec/matchers/have_package.rb
fairchild-poolparty-1.1.5 lib/poolparty/spec/matchers/have_package.rb
poolparty-0.2.84 lib/poolparty/spec/matchers/have_package.rb