Skip to content

Commit

Permalink
Tweak unrelated test
Browse files Browse the repository at this point in the history
  • Loading branch information
computermacgyver committed Aug 28, 2024
1 parent 2bebbf0 commit 36da4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/models/bot/smooch_6_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,12 @@ def send_message_outside_24_hours_window(template, pm = nil)
test "should not duplicate messages when saving" do
@team.set_languages ['en']
@team.save!
url = 'http://localhost'
send_message url, '1', url, '1'
message_text = 'not_a_url' #Not a URL, not media, and not longer than 'min_number_of_words_for_tipline_submit_shortcut'
send_message message_text, '1', message_text, '1'
assert_state 'search'
Sidekiq::Worker.drain_all
tr = TiplineRequest.last
assert_equal 2, tr.smooch_data['text'].split("\n#{Bot::Smooch::MESSAGE_BOUNDARY}").select{ |x| x.chomp.strip == url }.size
assert_equal 2, tr.smooch_data['text'].split("\n#{Bot::Smooch::MESSAGE_BOUNDARY}").select{ |x| x.chomp.strip == message_text }.size
end

test "should get search results in different languages" do
Expand Down

0 comments on commit 36da4e5

Please sign in to comment.