Sha256: 7e841ca67f60da09ee7c23fc12caf8037704764e1a6ce642ae2073d93b8988cf

Contents?: true

Size: 583 Bytes

Versions: 4

Compression:

Stored size: 583 Bytes

Contents

require 'helper'

class TestDeveloperMachine < Test::Unit::TestCase
  def test_developing_cm1_locally
    ENV['BRIGHTER_PLANET_METADATA_FORCE_UNIVERSE'] = 'cm1_production'
    assert_equal 'cm1_production', BrighterPlanet.metadata.send(:universe)
  ensure 
    ENV['BRIGHTER_PLANET_METADATA_FORCE_UNIVERSE'] = ''
  end
  
  def test_developing_data1_locally
    ENV['BRIGHTER_PLANET_METADATA_FORCE_UNIVERSE'] = 'data1_production'
    assert_equal 'data1_production', BrighterPlanet.metadata.send(:universe)
  ensure 
    ENV['BRIGHTER_PLANET_METADATA_FORCE_UNIVERSE'] = ''
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brighter_planet_metadata-0.0.4 test/test_developer_machine.rb
brighter_planet_metadata-0.0.3 test/test_developer_machine.rb
brighter_planet_metadata-0.0.2 test/test_developer_machine.rb
brighter_planet_metadata-0.0.1 test/test_developer_machine.rb