Sha256: 5cbca957630ab191aba34c5be568cd625ad4a625e90b4ecf2d281820252ca9cd

Contents?: true

Size: 532 Bytes

Versions: 21

Compression:

Stored size: 532 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '../../_lib'))

require 'einhorn'

class CommandTest < EinhornTestCase
  include Einhorn

  describe "when running quieter" do
    it "increases the verbosity threshold" do
      Einhorn::State.stubs(:verbosity => 1)
      Einhorn::State.expects(:verbosity=).once.with(2).returns(2)
      Command.quieter
    end

    it "maxes out at 2" do
      Einhorn::State.stubs(:verbosity => 2)
      Einhorn::State.expects(:verbosity=).never
      Command.quieter
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
einhorn-0.7.4 test/unit/einhorn/command.rb
einhorn-0.7.3 test/unit/einhorn/command.rb
einhorn-0.7.2 test/unit/einhorn/command.rb
einhorn-0.7.1 test/unit/einhorn/command.rb
einhorn-0.7.0 test/unit/einhorn/command.rb
einhorn-0.6.5 test/unit/einhorn/command.rb
einhorn-0.6.4 test/unit/einhorn/command.rb
einhorn-0.6.3 test/unit/einhorn/command.rb
einhorn-0.6.2 test/unit/einhorn/command.rb
einhorn-0.6.1 test/unit/einhorn/command.rb
einhorn-0.6.0 test/unit/einhorn/command.rb
einhorn-0.5.7 test/unit/einhorn/command.rb
einhorn-0.5.6 test/unit/einhorn/command.rb
einhorn-0.5.5 test/unit/einhorn/command.rb
einhorn-0.5.4 test/unit/einhorn/command.rb
einhorn-0.5.3 test/unit/einhorn/command.rb
einhorn-0.5.2 test/unit/einhorn/command.rb
einhorn-0.5.1 test/unit/einhorn/command.rb
einhorn-0.5.0 test/unit/einhorn/command.rb
einhorn-0.4.9 test/unit/einhorn/command.rb