Rename notifications.queued to read

This commit is contained in:
Artur Beljajev 2018-08-24 00:36:58 +03:00
parent dfff6f6d12
commit 7a9a7c052f
11 changed files with 30 additions and 23 deletions

View file

@ -19,9 +19,9 @@ class NotificationTest < ActiveSupport::TestCase
assert @notification.invalid?
end
def test_dequeue
@notification.dequeue
def test_mark_as_read
@notification.mark_as_read
@notification.reload
assert_not @notification.queued?
assert @notification.read?
end
end