From dc53b23fafcbfc94f10f9dd63a15517925444847 Mon Sep 17 00:00:00 2001 From: Artemy Kirienko Date: Mon, 5 Sep 2016 15:12:01 +0300 Subject: [PATCH 1/2] Fix auto-generated tests :chocolate_bar: --- test/controllers/links_controller_test.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/test/controllers/links_controller_test.rb b/test/controllers/links_controller_test.rb index 5c581b1..2373f43 100644 --- a/test/controllers/links_controller_test.rb +++ b/test/controllers/links_controller_test.rb @@ -20,22 +20,7 @@ class LinksControllerTest < ActionDispatch::IntegrationTest post links_url, params: { link: { text: @link.text } } end - assert_redirected_to link_url(Link.last) - end - - test "should show link" do - get link_url(@link) - assert_response :success - end - - test "should get edit" do - get edit_link_url(@link) - assert_response :success - end - - test "should update link" do - patch link_url(@link), params: { link: { text: @link.text } } - assert_redirected_to link_url(@link) + assert_redirected_to links_url end test "should destroy link" do From 06fc973a2dc27d497ba160463e66fcce42717020 Mon Sep 17 00:00:00 2001 From: Artemy Kirienko Date: Mon, 5 Sep 2016 15:13:59 +0300 Subject: [PATCH 2/2] Add test info to README :memo: --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f21bd96..ae958ee 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,9 @@ * Services (job queues, cache servers, search engines, etc.) Sidekiq + +* How to run test suite: + + ``` + rails test + ```