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