Permalink
Browse files

Merge pull request #3 from kirikak2/xml_api_build_queue_info_path_not…

…_updated

[bug]@@xml_api_build_queue_info_path is not changed, after Hudson[:url] update
  • Loading branch information...
2 parents 29d465a + 492170c commit b3bd6682f9b073189e570f16953d14ca694a4dd5 @Druwerd Druwerd committed May 23, 2011
Showing with 8 additions and 2 deletions.
  1. +1 −1 lib/hudson-remote-api/build_queue.rb
  2. +1 −0 lib/hudson-remote-api/config.rb
  3. +6 −1 test/test_hudson_build_queue.rb
View
2 lib/hudson-remote-api/build_queue.rb
@@ -20,4 +20,4 @@ def self.list()
queue
end
end
-end
+end
View
1 lib/hudson-remote-api/config.rb
@@ -17,6 +17,7 @@ def self.[]=(param,value)
@@settings[param]=value
end
HudsonObject::load_xml_api
+ BuildQueue::load_xml_api
end
def self.settings=(settings)
View
7 test/test_hudson_build_queue.rb
@@ -8,4 +8,9 @@ def test_list
assert Hudson::BuildQueue.list
end
-end
+ def test_load_xml_api
+ Hudson[:url] = "test.host.com"
+ assert_equal("http://test.host.com/queue/api/xml",
+ Hudson::BuildQueue.__send__("class_variable_get", "@@xml_api_build_queue_info_path"))
+ end
+end

0 comments on commit b3bd668

Please sign in to comment.