Sha256: ab45c8f6c14fee9456837c93903a105f5df4566953715e7d2b42cf6de284f2c0
Contents?: true
Size: 834 Bytes
Versions: 5
Compression:
Stored size: 834 Bytes
Contents
require 'yardstick' require 'spec' require 'spec/autorun' Spec::Runner.configure do |config| clear_tasks = proc { Rake::Task.clear } config.before(:all, &clear_tasks) config.before( &clear_tasks) clear_yard_registry = proc { YARD::Registry.clear } config.before(:all, &clear_yard_registry) config.before( &clear_yard_registry) def capture_stdout $stdout = StringIO.new yield ensure $stdout.rewind @output = $stdout.read $stdout = STDOUT end end shared_examples_for 'measured itself' do it 'should return a MeasurementSet' do @measurements.should be_kind_of(Yardstick::MeasurementSet) end it 'should be non-empty' do @measurements.should_not be_empty end it 'should all be correct' do @measurements.each { |measurement| measurement.should be_ok } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.2 | spec/spec_helper.rb |
yardstick-0.9.1 | spec/spec_helper.rb |
yardstick-0.9.0 | spec/spec_helper.rb |
yardstick-0.8.0 | spec/spec_helper.rb |
yardstick-0.7.0 | spec/spec_helper.rb |