Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : Use only request header for the mime type
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Mon, 24 Aug 2009 16:52:04 +0200
  • Message-id: <E1MiTqK-0006c5-4I@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit aa75e4d8c8253b9baf5d7a96849789d42cf82d1b
Author: Klaus Kämpf <kkaempf@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages