Skip to content

Commit

Permalink
Fix test with new entity attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Sep 18, 2023
1 parent 7435df5 commit 2259084
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/models/govbox/message_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Govbox::MessageTest < ActiveSupport::TestCase
assert_equal message.tags.count, 1
assert_equal message.tags.first.name, "slovensko.sk:#{govbox_message.folder.name}"
assert_equal message.tags.first.visible, false
assert_equal message.tags.first.external, true
assert_equal message.thread.tags.count, 1
assert_equal message.tags.first, message.thread.tags.first
end
Expand All @@ -41,7 +42,7 @@ class Govbox::MessageTest < ActiveSupport::TestCase
test "should not create new tag if already exists" do
govbox_message = govbox_messages(:one)

tag = Tag.create!(name: "slovensko.sk:#{govbox_message.folder.name}", tenant: govbox_message.folder.box.tenant, visible: false)
tag = Tag.create!(name: "slovensko.sk:#{govbox_message.folder.name}", tenant: govbox_message.folder.box.tenant, visible: false, external: true)

Govbox::Message.create_message_with_thread!(govbox_message)

Expand All @@ -57,7 +58,7 @@ class Govbox::MessageTest < ActiveSupport::TestCase
govbox_message1 = govbox_messages(:one)
govbox_message2 = govbox_messages(:three)

tag = Tag.create!(name: "slovensko.sk:#{govbox_message1.folder.name}", tenant: govbox_message1.folder.box.tenant, visible: false)
tag = Tag.create!(name: "slovensko.sk:#{govbox_message1.folder.name}", tenant: govbox_message1.folder.box.tenant, visible: false, external: true)

Govbox::Message.create_message_with_thread!(govbox_message1)
message1 = Message.last
Expand Down

0 comments on commit 2259084

Please sign in to comment.