ref: refs/heads/master
commit 64e568c763623c2a781bf69780c9e3914cbb3f6a
Author: Martin Kudlvasr
Date: Tue Sep 15 17:20:45 2009 +0200
modify test to match the new interface
btw, the test passed even before the change
---
.../test/functional/resources_controller_test.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/webservice/test/functional/resources_controller_test.rb b/webservice/test/functional/resources_controller_test.rb
index 4662534..75e37df 100644
--- a/webservice/test/functional/resources_controller_test.rb
+++ b/webservice/test/functional/resources_controller_test.rb
@@ -33,7 +33,7 @@ class ResourcesControllerTest < ActionController::TestCase
end
test "resources index with interface" do
- get :index, :interface => "org.opensuse.test"
+ get :index, :id => "org.opensuse.test"
assert_response :success
end
@@ -51,7 +51,7 @@ class ResourcesControllerTest < ActionController::TestCase
test "resources by interfaces query" do
ResourceRegistration.resources.each do |interface,implementations|
- get :index, :params => { "interface" => interface }
+ get :index, :params => { "id" => interface }
assert_response :success
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org