Sha256: ca7294c033ebc91f6c242ce60e127fe56eed46c21926b81533952a6f0e75dada

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 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.1 spec/sandbox_spec.rb