Sha256: f4fd82fd316b9227d47e8cbb22a2f1b9138dd230cbe920faa387358232b4a427

Contents?: true

Size: 453 Bytes

Versions: 27

Compression:

Stored size: 453 Bytes

Contents

RSpec::Matchers.define :be_running do
  match do |process|
    if (@under)
      check_method = "check_running_under_#{@under}".to_sym

      unless backend.respond_to?(check_method)
        raise ArgumentError.new("`be_running` matcher doesn't support #{@under}")
      end

      backend.send(check_method, example, process)
    else
      backend.check_running(example, process)
    end

  end

  chain :under do |under|
    @under = under
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
serverspec-0.3.2 lib/serverspec/matchers/be_running.rb
serverspec-0.3.1 lib/serverspec/matchers/be_running.rb
serverspec-0.3.0 lib/serverspec/matchers/be_running.rb
serverspec-0.2.28 lib/serverspec/matchers/be_running.rb
serverspec-0.2.27 lib/serverspec/matchers/be_running.rb
serverspec-0.2.26 lib/serverspec/matchers/be_running.rb
serverspec-0.2.25 lib/serverspec/matchers/be_running.rb
serverspec-0.2.24 lib/serverspec/matchers/be_running.rb
serverspec-0.2.23 lib/serverspec/matchers/be_running.rb
serverspec-0.2.22 lib/serverspec/matchers/be_running.rb
serverspec-0.2.21 lib/serverspec/matchers/be_running.rb
serverspec-0.2.20 lib/serverspec/matchers/be_running.rb
serverspec-0.2.19 lib/serverspec/matchers/be_running.rb
serverspec-0.2.18 lib/serverspec/matchers/be_running.rb
serverspec-0.2.17 lib/serverspec/matchers/be_running.rb
serverspec-0.2.16 lib/serverspec/matchers/be_running.rb
serverspec-0.2.15 lib/serverspec/matchers/be_running.rb
serverspec-0.2.14 lib/serverspec/matchers/be_running.rb
serverspec-0.2.13 lib/serverspec/matchers/be_running.rb
serverspec-0.2.12 lib/serverspec/matchers/be_running.rb