ref: refs/heads/network
commit aa75e4d8c8253b9baf5d7a96849789d42cf82d1b
Author: Klaus Kämpf
Date: Mon Aug 24 16:52:04 2009 +0200
Use only request header for the mime type
---
.../test/functional/patches_controller_test.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/patches/test/functional/patches_controller_test.rb b/plugins/patches/test/functional/patches_controller_test.rb
index 24052ea..0fce115 100644
--- a/plugins/patches/test/functional/patches_controller_test.rb
+++ b/plugins/patches/test/functional/patches_controller_test.rb
@@ -48,14 +48,14 @@ class PatchesControllerTest < ActionController::TestCase
test "access index xml" do
mime = Mime::XML
@request.accept = mime.to_s
- get :index, :format => :xml
+ get :index
assert_equal mime.to_s, @response.content_type
end
test "access index json" do
mime = Mime::JSON
@request.accept = mime.to_s
- get :index, :format => :json
+ get :index
assert_equal mime.to_s, @response.content_type
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org