Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <rest-service> master : Put 'resources' into the test names to prevent name clashes
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Tue, 7 Jul 2009 15:01:38 +0200
  • Message-id: <E1MOAIn-0001hq-3Z@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 3d4d54a23d37253ce750a5bc8d4208c2b6954f53
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Tue Jul 7 15:01:38 2009 +0200

Put 'resources' into the test names to prevent name clashes
---
.../test/functional/resources_controller_test.rb | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/webservice/test/functional/resources_controller_test.rb
b/webservice/test/functional/resources_controller_test.rb
index b9a7598..b341c75 100644
--- a/webservice/test/functional/resources_controller_test.rb
+++ b/webservice/test/functional/resources_controller_test.rb
@@ -23,24 +23,24 @@ class ResourcesControllerTest < ActionController::TestCase
ResourceRegistration.register_plugin plugin
end

- test "access root" do
+ test "resources access root" do
get :index
assert_response :success
end

- test "output xml format" do
+ test "resources output xml format" do
get :index, :format => "xml"
assert_response :success
assert @response.headers['Content-Type'] =~ %r{application/xml}
end

- test "output html format" do
+ test "resources output html format" do
get :index, :format => "html"
assert_response :success
assert @response.headers['Content-Type'] =~ %r{text/html}
end

- test "by interfaces query" do
+ test "resources by interfaces query" do
ResourceRegistration.resources.each do |interface,implementations|
get :index, :params => { "interface" => interface }
assert_response :success
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages