Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@
* Services (job queues, cache servers, search engines, etc.)

Sidekiq

* How to run test suite:

```
rails test
```
17 changes: 1 addition & 16 deletions test/controllers/links_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down