Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Jan 26, 2024
1 parent 4ace59f commit 939e83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/smooch_nlu_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create_team_with_smooch_bot_installed
team = create_team_with_smooch_bot_installed
SmoochNlu.new(team.slug).disable!
Bot::Smooch.get_installation('smooch_id', 'test')
assert_equal [], SmoochNlu.menu_options_from_message('I want to subscribe to the newsletter', 'en', @menu_options)
assert_equal [], SmoochNlu.menu_options_from_message('I want to subscribe to the newsletter', 'en', @menu_options, random_string)
end

test 'should return a menu option if NLU is enabled' do
Expand All @@ -120,6 +120,6 @@ def create_team_with_smooch_bot_installed
team = create_team_with_smooch_bot_installed
SmoochNlu.new(team.slug).enable!
Bot::Smooch.get_installation('smooch_id', 'test')
assert_not_nil SmoochNlu.menu_options_from_message('I want to subscribe to the newsletter', 'en', @menu_options)
assert_not_nil SmoochNlu.menu_options_from_message('I want to subscribe to the newsletter', 'en', @menu_options, random_string)
end
end

0 comments on commit 939e83c

Please sign in to comment.