Sha256: 30a75f0e7236219584d5336041a4c8a1c21ae9bf8377a67ce6a286d4cf6721ee
Contents?: true
Size: 896 Bytes
Versions: 2
Compression:
Stored size: 896 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'yardstick/rake/measurement' describe Yardstick::Rake::Measurement, '#yardstick_measure' do subject { described_class.new(:yardstick_measure, options).yardstick_measure } let(:config) { double('config', :path => 'tmp', :output => report_writer) } let(:report_writer) { double('report writer') } let(:options) { double('options') } let(:measurements) { double('measurements') } let(:io) { double('io') } it 'writes yardstick results' do Yardstick::Config.stub(:coerce).with(options) { config } Yardstick.stub(:measure).with(config) { measurements } report_writer.stub(:write).and_yield(io) measurements.should_receive(:puts).with(io) subject end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.9 | spec/unit/yardstick/rake/measurement/yardstick_measure_spec.rb |
yardstick-0.9.8 | spec/unit/yardstick/rake/measurement/yardstick_measure_spec.rb |