Files
fizzy/test/models/command/go_to_user_test.rb
T
Jorge Manrubia 863ced55c4 Add tests
2025-05-06 14:17:28 +02:00

17 lines
391 B
Ruby

require "test_helper"
class Command::GoToUserTest < ActionDispatch::IntegrationTest
include CommandTestHelper
test "redirects to the user perma" do
result = execute_command "@kevin"
assert_equal users(:kevin), result.url
end
test "results in an invalid command if the user does not exist" do
command = parse_command "@not_a_user"
assert !command.valid?
end
end