Skip to content

Commit

Permalink
Replaced respond_with_content_type with assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa42 committed Dec 27, 2013
1 parent 7635abb commit 27ed58c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/functional/tasks_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27ed58c

Please sign in to comment.