Sha256: fe2aec9ce2ce630e615da1a324bf1cfbdf2bc12d000d87f6d36f978d85f541a7
Contents?: true
Size: 555 Bytes
Versions: 19
Compression:
Stored size: 555 Bytes
Contents
RSpec::Matchers.define :be_running do match do |process| if process.respond_to?(:running?) process.running? @under else 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 end chain :under do |under| @under = under end end
Version data entries
19 entries across 19 versions & 1 rubygems