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 + ``` 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