Sha256: 0ccb872df589db4fca4bf82e449805a8731e59b07fad7d9a0b09ad014ea9f156

Contents?: true

Size: 548 Bytes

Versions: 11

Compression:

Stored size: 548 Bytes

Contents

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

require 'einhorn'

class CommandTest < Test::Unit::TestCase
  include Einhorn

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
einhorn-0.4.7 test/unit/einhorn/command.rb
einhorn-0.4.6 test/unit/einhorn/command.rb
einhorn-0.4.5 test/unit/einhorn/command.rb
einhorn-0.4.4 test/unit/einhorn/command.rb
einhorn-0.4.3 test/unit/einhorn/command.rb
einhorn-0.4.2 test/unit/einhorn/command.rb
einhorn-0.4.1 test/unit/einhorn/command.rb
einhorn-0.4.0 test/unit/einhorn/command.rb
einhorn-0.3.2 test/unit/einhorn/command.rb
einhorn-0.3.1 test/unit/einhorn/command.rb
einhorn-0.3.0 test/unit/einhorn/command.rb