test/maestrano/maestrano_test.rb in maestrano-0.8.0 vs test/maestrano/maestrano_test.rb in maestrano-0.8.1

- old
+ new

@@ -49,11 +49,12 @@ should "build the api_token based on the app_id and api_key" do Maestrano.configure { |config| config.app_id = "bla"; config.api_key = "blo" } assert_equal "bla:blo", Maestrano.param('api.token') end - should "assign the sso.idm if explicitly set to nil" do - Maestrano.configure { |config| config.sso.idm = nil } + should "assign the sso.idm to app.host if not provided" do + Maestrano.config = Maestrano::Configuration.new + Maestrano.configure { |config| config.app.host = "https://someapp.com" } assert_equal Maestrano.param('app.host'), Maestrano.param('sso.idm') end should "force assign the api.lang" do Maestrano.configure { |config| config.api.lang = "bla" } \ No newline at end of file