shared_examples"an autodiscoverable RSS feed with current_user's private token"doit"has an RSS autodiscovery link tag with current_user's private token"doexpect(page).tohave_css("link[type*='atom+xml'][href*='private_token=#{Thread.current[:current_user].private_token}']",visible: false)endendshared_examples"it has an RSS button with current_user's private token"doit"shows the RSS button with current_user's private token"doexpect(page).tohave_css("a:has(.fa-rss)[href*='private_token=#{Thread.current[:current_user].private_token}']")endendshared_examples"an autodiscoverable RSS feed without a private token"doit"has an RSS autodiscovery link tag without a private token"doexpect(page).tohave_css("link[type*='atom+xml']:not([href*='private_token'])",visible: false)endendshared_examples"it has an RSS button without a private token"doit"shows the RSS button without a private token"doexpect(page).tohave_css("a:has(.fa-rss):not([href*='private_token'])")endend