From 27ed58c8ac5b08f7cc482939b1aa307c27304e6f Mon Sep 17 00:00:00 2001 From: Vikrant Chaudhary Date: Fri, 27 Dec 2013 15:30:55 +0530 Subject: [PATCH] Replaced respond_with_content_type with assert. --- test/functional/tasks_controller_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/functional/tasks_controller_test.rb b/test/functional/tasks_controller_test.rb index 8229496feb..460d6634b9 100755 --- a/test/functional/tasks_controller_test.rb +++ b/test/functional/tasks_controller_test.rb @@ -29,10 +29,13 @@ def setup TaskRecord.all.each do |task| TaskUser.new(:user_id => @user.id, :task_id => task.id).save end + end + + should "get next tasks" do get :nextTasks, :count => 5 + assert_response :success + assert_equal "application/json", @response.content_type end - should respond_with(:success) - should respond_with_content_type('application/json') end should "render :success on /edit" do