From 294a6356fab3a3e681454d5ad9a7018cd4b2b343 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Sun, 6 Sep 2020 02:00:11 +0300 Subject: [PATCH] #2471: Add test to find similar problems in future --- test/controllers/todos_controller_test.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/controllers/todos_controller_test.rb b/test/controllers/todos_controller_test.rb index 3fa3b774..79eac5a6 100644 --- a/test/controllers/todos_controller_test.rb +++ b/test/controllers/todos_controller_test.rb @@ -223,14 +223,15 @@ class TodosControllerTest < ActionController::TestCase login_as(:admin_user) assert_difference 'Todo.count' do put :create, xhr: true, params: { - "context_name"=>"library", - "project_name"=>"Build a working time machine", + "context_name" => "library", + "project_name" => "Build a working time machine", "todo" => { - "notes"=>"", + "notes" => "", "description" => "Call Warren Buffet to find out how much he makes per day", - "due"=>"30/11/2006" + "due" => "30/11/2006" }, - "tag_list"=>"foo bar" + "_source_view" => "context", + "tag_list" => "foo bar" } assert_response 200 end