Merge pull request #1879 from basecamp/scope-tags

Scope tags by account
This commit is contained in:
Jorge Manrubia
2025-12-03 23:42:04 +01:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -16,4 +16,13 @@ class Card::TaggableTest < ActiveSupport::TestCase
@card.toggle_tag_with "ruby"
end
end
test "scope tags by account" do
assert_difference -> { Tag.count }, 2 do
cards(:logo).toggle_tag_with "ruby"
cards(:paycheck).toggle_tag_with "ruby"
end
assert_not_equal cards(:logo).tags.last, cards(:paycheck).tags.last
end
end