1 # frozen_string_literal: true
6 class NewFollowerViewTest < ActionView::TestCase
8 follower = build_stubbed(:user, :display_name => "Follower")
9 follow = build_stubbed(:follow, :follower => follower)
11 notification = build_stubbed(
14 :notifier_class => NewFollowerNotifier
18 "notifications/notification",
19 :notification => notification
22 assert_dom ".web-notification" do
23 assert_dom "h2", "New follower"
24 assert_dom "time", "less than 1 minute ago"
25 assert_dom "p", "User Follower started following you. You can follow them back if you wish."