Sha256: ffb7844cf8d3692ce2d840ee1124920105c953389e67b93a20ae8f8dd951bfd8
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::MeasurementSet, '#failed' do subject { set.failed } context 'when no failed measurements' do let(:set) { described_class.new } it { should be(0) } end context 'when a failed measurement' do let(:set) { described_class.new([measurement]) } let(:measurement) { double('measurement', :ok? => false) } it { should be(1) } end context 'when a failed measurement with a successful measurement' do let(:set) { described_class.new([measurement1, measurement2]) } let(:measurement1) { double('measurement', :ok? => false) } let(:measurement2) { double('measurement', :ok? => true) } it { should be(1) } end end
Version data entries
3 entries across 3 versions & 1 rubygems