blob: 6e94d39f2523363e048744d79a3ec66a02fc8160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'test_helper'
class AnonymousUserTest < ActiveSupport::TestCase
setup do
@anonymous = AnonymousUser.new
end
test "has nil values" do
assert_nil @anonymous.id
assert_nil @anonymous.email_address
assert_nil @anonymous.login
end
test "has no messages" do
assert_equal [], @anonymous.messages
end
test "has anonymous service level" do
assert @anonymous.effective_service_level.is_a? AnonymousServiceLevel
end
end
|