test/maestrano/maestrano_test.rb in maestrano-0.3.0 vs test/maestrano/maestrano_test.rb in maestrano-0.4.0
- old
+ new
@@ -43,7 +43,12 @@
['api_host','api_base','sso_name_id_format', 'sso_x509_certificate'].each do |parameter|
assert Maestrano.param(parameter) == Maestrano::Configuration::EVT_CONFIG[:production][parameter.to_sym]
end
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
end
end
\ No newline at end of file