Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchal committed Dec 6, 2023
1 parent 27607ff commit 7f7fa1c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 15 additions & 0 deletions test/models/everything_tag_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require "test_helper"

class EverythingTagTest < ActiveSupport::TestCase
test "adds everything tag to every thread" do
box = boxes(:ssd_main)
thread = box.message_threads.create!(
title: 'Test',
original_title: 'Test',
delivered_at: Time.current,
last_message_delivered_at: Time.current
)

assert_includes thread.tags, box.tenant.everything_tag
end
end
4 changes: 0 additions & 4 deletions test/models/message_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,4 @@ class MessageTest < ActiveSupport::TestCase
assert_not message.tags.include?(tag)
assert message.thread.tags.include?(tag)
end

test "adds everything tag to every message" do

end
end

0 comments on commit 7f7fa1c

Please sign in to comment.