Sha256: 5a025c16c1fb7245b618e499710deb53e646fe0691f0069c1fba53d593d71d7e

Contents?: true

Size: 877 Bytes

Versions: 12

Compression:

Stored size: 877 Bytes

Contents

require 'helper'

class TestReal < Test::Unit::TestCase
  def setup
    super
    BrighterPlanet.metadata.refresh
    FakeWeb.clean_registry
    FakeWeb.allow_net_connect = true
    $old_fallback = BrighterPlanet::Metadata::FALLBACK
    silence_warnings { BrighterPlanet::Metadata.const_set 'FALLBACK', Hash.new([]) }
  end
  
  def teardown
    super
    silence_warnings { BrighterPlanet::Metadata.const_set 'FALLBACK', $old_fallback }
  end
  
  def test_emitters
    assert ::BrighterPlanet.metadata.emitters.include?('AutomobileTrip')
  end
  
  def test_resources
    assert ::BrighterPlanet.metadata.resources.include?('AutomobileMake')
  end
  
  def test_datasets
    assert ::BrighterPlanet.metadata.datasets.include?('AutomobileIndustry')
  end
  
  def test_protocols
    assert ::BrighterPlanet.metadata.protocols.values.include?('The Climate Registry')
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
brighter_planet_metadata-0.0.16 test/test_real.rb
brighter_planet_metadata-0.0.15 test/test_real.rb
brighter_planet_metadata-0.0.14 test/test_real.rb
brighter_planet_metadata-0.0.13 test/test_real.rb
brighter_planet_metadata-0.0.12 test/test_real.rb
brighter_planet_metadata-0.0.11 test/test_real.rb
brighter_planet_metadata-0.0.10 test/test_real.rb
brighter_planet_metadata-0.0.9 test/test_real.rb
brighter_planet_metadata-0.0.8 test/test_real.rb
brighter_planet_metadata-0.0.7 test/test_real.rb
brighter_planet_metadata-0.0.6 test/test_real.rb
brighter_planet_metadata-0.0.5 test/test_real.rb