Sha256: 69388fbd672ff01e769abf45527eb00bfd8dd1b9832e5989a30c764d28c4d9f1

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'yardstick/rake/verify'

describe Yardstick::Rake::Verify do
  before do
    Yardstick::Rake::Verify.new do |verify|
      verify.threshold = 100
      verify.path = 'lib/yardstick.rb'
    end
  end

  it 'should display coverage summary when executed' do
    capture_stdout { Rake::Task['verify_measurements'].execute }

    expect(@output).to eql("YARD-Coverage: 100.0% (threshold: 100%)\n")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/integration/yardstick/rake/verify_spec.rb
yardstick-0.9.8 spec/integration/yardstick/rake/verify_spec.rb
yardstick-0.9.7 spec/integration/yardstick/rake/verify_spec.rb