Sha256: 184efad4ffe07a86220c7138744493e754368c1d47aee17bffce504a43b7aebe
Contents?: true
Size: 999 Bytes
Versions: 3
Compression:
Stored size: 999 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'test/unit' require 'fakeweb' require 'fakefs/safe' require 'fileutils' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'brighter_planet_metadata' class Test::Unit::TestCase def setup BrighterPlanet.metadata.refresh FakeWeb.clean_registry FakeWeb.allow_net_connect = false Rails.application.certified = false Rails.root = nil end def teardown FakeFS::FileSystem.clear FakeFS.deactivate! FakeWeb.allow_net_connect = true Rails.application.certified = false Rails.root = nil end end require 'singleton' require 'active_support/core_ext/module' module Rails mattr_accessor :root def self.application FakeApplication.instance end class FakeApplication include ::Singleton attr_writer :certified def certified? @certified == true end end end ENV['BRIGHTER_PLANET_METADATA_DEBUG'] = 'true'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brighter_planet_metadata-0.0.4 | test/helper.rb |
brighter_planet_metadata-0.0.3 | test/helper.rb |
brighter_planet_metadata-0.0.2 | test/helper.rb |