Add command to filter by tag
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
require "test_helper"
|
||||
|
||||
class Command::FilterByCardTest < ActionDispatch::IntegrationTest
|
||||
include CommandTestHelper
|
||||
|
||||
setup do
|
||||
@tag = tags(:web)
|
||||
end
|
||||
|
||||
test "redirects to the cards index filtering by cards" do
|
||||
result = execute_command "##{@tag.title}"
|
||||
|
||||
assert_equal cards_path(indexed_by: "newest", tag_ids: [ @tag.id ]), result.url
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user