Sha256: a58e9c87e1db85fb7b708b045f90898cf490ada9163170d616a8dc43be0e2cdf

Contents?: true

Size: 249 Bytes

Versions: 101

Compression:

Stored size: 249 Bytes

Contents

RSpec::Matchers.define :be_running do
  match do |subject|
    if subject.class.name == 'Serverspec::Type::Service'
      subject.running?(@under)
    else
      subject.running?
    end
  end

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

Version data entries

101 entries across 101 versions & 3 rubygems

Version Path
serverspec-ruby19-2.24.3 lib/serverspec/matcher/be_running.rb
serverspec-2.29.2 lib/serverspec/matcher/be_running.rb
serverspec-2.29.1 lib/serverspec/matcher/be_running.rb
serverspec-2.29.0 lib/serverspec/matcher/be_running.rb
serverspec-2.28.0 lib/serverspec/matcher/be_running.rb
serverspec-2.27.0 lib/serverspec/matcher/be_running.rb
serverspec-2.26.0 lib/serverspec/matcher/be_running.rb
serverspec-2.25.0 lib/serverspec/matcher/be_running.rb
serverspec-2.24.3 lib/serverspec/matcher/be_running.rb
serverspec-2.24.2 lib/serverspec/matcher/be_running.rb
serverspec-2.24.1 lib/serverspec/matcher/be_running.rb
serverspec-2.24.0 lib/serverspec/matcher/be_running.rb
serverspec-2.23.1 lib/serverspec/matcher/be_running.rb
serverspec-2.23.0 lib/serverspec/matcher/be_running.rb
serverspec-2.22.0 lib/serverspec/matcher/be_running.rb
serverspec-2.21.1 lib/serverspec/matcher/be_running.rb
serverspec-2.21.0 lib/serverspec/matcher/be_running.rb
serverspec-2.20.0 lib/serverspec/matcher/be_running.rb
serverspec-2.19.0 lib/serverspec/matcher/be_running.rb
serverspec-2.18.0 lib/serverspec/matcher/be_running.rb