Sha256: 73eab2292cda1657f119c4c9a3f2dd31d30618c624cb912abd0c87cf0acce6d0

Contents?: true

Size: 264 Bytes

Versions: 3

Compression:

Stored size: 264 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"

describe "Kernel#silence_warnings" do
  
  it "should not warn" do
    $VERBOSE.should_not be_nil
    
    silence_warnings do
      $VERBOSE.should be_nil
    end
    
    $VERBOSE.should_not be_nil
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datamapper-0.3.0 spec/support/silence_spec.rb
datamapper-0.3.1 spec/support/silence_spec.rb
datamapper-0.3.2 spec/support/silence_spec.rb