Sha256: d338213aca1c2a561588e05be2431c3a30a885fb83b3c261782b0d8cfdcb3e7a
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 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, process) else backend.check_running(process) end end chain :under do |under| @under = under end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.2.4 | lib/serverspec/matchers/be_running.rb |
serverspec-0.2.3 | lib/serverspec/matchers/be_running.rb |