Sha256: 79675cd5be39a0006b7a6254dbc43c70e3d6f8925b1073639f013362c38adf9e

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

covers 'facets/kernel/disable_warnings'
covers 'facets/kernel/enable_warnings'
covers 'facets/kernel/silence_warnings'

test_case Kernel do

  method :disable_warnings do

    test do
      disable_warnings do
        assert( ! $VERBOSE )
      end
    end

  end

  method :silence_warnings do

    test "alias for backward compatibility" do
      silence_warnings do
        assert( ! $VERBOSE )
      end
    end

  end

  method :enable_warnings do

    test :enable_warnings do
      enable_warnings do
        assert( $VERBOSE )
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/kernel/test_disable_warnings.rb
facets-3.1.0 test/core/kernel/test_disable_warnings.rb
facets-3.0.0 test/core/kernel/test_disable_warnings.rb
facets-2.9.3 test/core/kernel/test_disable_warnings.rb
facets-2.9.2 test/core/kernel/test_disable_warnings.rb