Sha256: 662e8aca29bc48079e6eb594438f6460b3db37445bf83dba388b1190d0bb3aad

Contents?: true

Size: 277 Bytes

Versions: 8

Compression:

Stored size: 277 Bytes

Contents

require 'helper'

module Oprah
  class Test < Minitest::Test
    def test_debug
      old = ENV["OPRAH_DEBUG"]

      ENV["OPRAH_DEBUG"] = nil
      refute Oprah.debug?

      ENV["OPRAH_DEBUG"] = "1"
      assert Oprah.debug?

      ENV["OPRAH_DEBUG"] = old
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
detaso-oprah-0.3.1 test/oprah/oprah_test.rb
detaso-oprah-0.3.0 test/oprah/oprah_test.rb
oprah-0.3.0 test/oprah/oprah_test.rb
oprah-0.2.1 test/oprah/oprah_test.rb
oprah-0.2.0 test/oprah/oprah_test.rb
oprah-0.1.3 test/oprah/oprah_test.rb
oprah-0.1.2 test/oprah/oprah_test.rb
oprah-0.1.1 test/oprah/oprah_test.rb