Sha256: 3fc06350870cc9d3af10e775a63383d8bbe1be10db653583cdc68e333c218ec4
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
require 'spec_helper' describe '[play] subcommand' do it 'should print 3 JSON records for busy100.pgr' do busy100 = data_file "busy100.pgr" cmd = "#{perfmonger_bin} play #{busy100}" run(cmd) assert_success(true) expect(stdout_from(cmd).lines.to_a.size).to eq 3 stdout_from(cmd).each_line do |line| expect do JSON.parse(line) end.not_to raise_error json = JSON.parse(line) expect(json.keys.sort).to eq %w{time cpu disk net}.sort end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
perfmonger-0.8.2 | spec/play_spec.rb |
perfmonger-0.8.1 | spec/play_spec.rb |
perfmonger-0.8.0 | spec/play_spec.rb |
perfmonger-0.7.1 | spec/play_spec.rb |
perfmonger-0.7.0 | spec/play_spec.rb |