Skip to content

Commit

Permalink
Adding missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Jan 26, 2024
1 parent 939e83c commit 5ebd033
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/models/bot_user_2_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,12 @@ class BotUser2Test < ActiveSupport::TestCase
b.call({})
end
end

test "should capture error if bot can't be called" do
Bot::Alegre.stubs(:run).raises(StandardError)
b = create_bot_user login: 'alegre'
assert_nothing_raised do
b.call({})
end
end
end

0 comments on commit 5ebd033

Please sign in to comment.