test/maestrano/maestrano_test.rb in maestrano-0.8.1 vs test/maestrano/maestrano_test.rb in maestrano-0.8.2
- old
+ new
@@ -44,9 +44,15 @@
@config.keys.each do |key|
assert_equal @config[key], Maestrano.param(key)
end
end
+ should "set the sso.creation_mode to 'real' by default" do
+ Maestrano.config = Maestrano::Configuration.new
+ Maestrano.configure { |config| config.app.host = "https://someapp.com" }
+ assert_equal 'real', Maestrano.param('sso.creation_mode')
+ end
+
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
\ No newline at end of file