Sha256: f9ec07fae17f54d9b69f11c806f29a0899185f478b833ca54974710e78189534
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
require "test/unit" require "rubygems" require "ruby-debug" require File.dirname(__FILE__) + "/../lib/settingslogic" class Test::Unit::TestCase def configure Settingslogic::Config.configure do |config| config.settings_file = File.dirname(__FILE__) + "/application.yml" end end def setup configure end def teardown configure Settingslogic::Settings.reset! end def in_test_environment(&block) Settingslogic::Settings.const_set :RAILS_ENV, "test" block.call Settingslogic::Settings.send :remove_const, :RAILS_ENV end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
binarylogic-settingslogic-1.0.4 | test/test_helper.rb |
settingslogic-1.0.4 | test/test_helper.rb |