test/maestrano/maestrano_test.rb in maestrano-1.0.0.pre.RC5 vs test/maestrano/maestrano_test.rb in maestrano-1.0.0.pre.RC6

- old
+ new

@@ -92,10 +92,11 @@ assert_false Maestrano.param('sso.slo_enabled') end context "with environment params" do should "return the right test parameters" do + Maestrano.reset! Maestrano.configure { |config| config.environment = 'test' } ['api.host', 'api.base', 'sso.idp', 'sso.name_id_format', 'sso.x509_certificate', 'connec.host', 'connec.base_path'].each do |parameter| assert_equal Maestrano::Configuration::EVT_CONFIG['test'][parameter], Maestrano.param(parameter) end @@ -228,10 +229,11 @@ assert_equal '/data', Maestrano[@preset].param('connec.base_path') end context "with environment params" do should "return the right test parameters" do + @preset = 'test' Maestrano[@preset].configure { |config| config.environment = 'test' } ['api.host','api.base','sso.idp', 'sso.name_id_format', 'sso.x509_certificate', 'connec.host','connec.base_path'].each do |parameter| assert_equal Maestrano::Configuration::EVT_CONFIG['test'][parameter], Maestrano[@preset].param(parameter) end @@ -507,7 +509,6 @@ } assert_equal expected, Maestrano.to_metadata end end - end