test/salesforce/config_test.rb in activeforce-2.0.1 vs test/salesforce/config_test.rb in activeforce-2.1.0

- old
+ new

@@ -110,21 +110,25 @@ config.session_id "session_id" assert_equal "session_id", Salesforce::Config.session_id config.server_instance "na99" assert_equal "na99", Salesforce::Config.server_instance + + config.server_domain "something.salesforce.com" + assert_equal "something.salesforce.com", Salesforce::Config.server_domain config.user_id "user_id" assert_equal "user_id", Salesforce::Config.user_id assert_equal config.server_url, Salesforce::Config.server_url end def test_server_url__and_server_host config = Salesforce::Config.instance config.server_instance "sa2" + config.server_domain "something.salesforce.com" config.api_version 99 - assert_equal "https://sa2.salesforce.com/services/data/v99.0", Salesforce::Config.server_url - assert_equal "https://sa2.salesforce.com", Salesforce::Config.server_host + assert_equal "https://sa2.something.salesforce.com/services/data/v99.0", Salesforce::Config.server_url + assert_equal "https://sa2.something.salesforce.com", Salesforce::Config.server_host end def test_configured config = Salesforce::Config.instance assert_equal false, config.configured?