From 087c00685b58ef437be1fdf0d7978d2a4ebdaf6c Mon Sep 17 00:00:00 2001 From: computermacgyver Date: Wed, 28 Aug 2024 14:48:04 +0900 Subject: [PATCH] fix tests that are related --- test/models/bot/smooch_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/models/bot/smooch_test.rb b/test/models/bot/smooch_test.rb index e5f86b83a..17c0b04dc 100644 --- a/test/models/bot/smooch_test.rb +++ b/test/models/bot/smooch_test.rb @@ -796,15 +796,15 @@ def teardown # Should not be a submission shortcut message = {"text": "abc"} - assert_equal(false, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Unexpected shortcut" + assert_equal(false, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Unexpected shortcut") # Should be a submission shortcut message = {"text": "abc http://example.com"} - assert_equal(true, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Missed URL shortcut" + assert_equal(true, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Missed URL shortcut") # Should be a submission shortcut message = {"text": "abc", "mediaUrl": "not blank"} - assert_equal(true, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Missed media shortcut" + assert_equal(true, Bot::Smooch::is_a_shortcut_for_submission(state,message), "Missed media shortcut") Bot::Smooch.unstubs(:is_v2?) end