Sha256: 1d6e83dc45126df9ab89f1ca6c0055c5baa013dee6b0876e647c285e6ac2d3ca

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

require 'spec_helper'

describe Sandbox do

  before( :each ) do
    Sandbox.instance_eval { instance_variables.each { |v| remove_instance_variable(v) } }
  end

  it "should have verbosity level" do
    Sandbox.verbosity.should == 0
  end

  it "should increase verbosity level" do
    Sandbox.verbosity.should == 0
    Sandbox.increase_verbosity
    Sandbox.verbosity.should == 1
  end

  it "should decrease verbosity level" do
    Sandbox.verbosity.should == 0
    Sandbox.decrease_verbosity
    Sandbox.verbosity.should == -1
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-virtualenv-0.5.0 spec/sandbox_spec.rb