Sha256: 7490cdbfae3103b5391028370de0e0b161a2a9badd361b9804cd2be5b92c59ea

Contents?: true

Size: 686 Bytes

Versions: 29

Compression:

Stored size: 686 Bytes

Contents

module Spec
  module Matchers
    module SpecExtensions
      class HaveExec < 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 exec #{@expected}"
        end
        def negative_failure_message
          "expected #{@target.inspect} not to have exec #{@expected}"
        end
        def type
          "exec"
        end
      end
    end
    def have_exec(name, extra="")
      SpecExtensions::HaveExec.new(name, extra)
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
auser-poolparty-0.2.71 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.72 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.74 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.76 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.77 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.78 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.79 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.80 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.81 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.84 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.85 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.88 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.89 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.90 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.91 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.92 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.93 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-0.2.94 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-1.0.0 lib/poolparty/spec/matchers/have_exec.rb
auser-poolparty-1.1.1 lib/poolparty/spec/matchers/have_exec.rb