Permalink
Browse files

bug: @@xml_api_build_queue_info_path is not changed, after Hudson[:ur…

…l] update.
  • Loading branch information...
1 parent 5c2cad9 commit 492170cfa93e97f301b151b76c674c9e06210137 @kirikak2 kirikak2 committed May 16, 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
@@ -20,4 +20,4 @@ def self.list()
queue
end
end
-end
+end
@@ -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)
@@ -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 492170c

Please sign in to comment.