Remove duplication in comments votes component
We're also simplifying the code a bit by removing the `participation-allowed` HTML class, which wasn't used in any other votes component.
This commit is contained in:
@@ -8,8 +8,6 @@ module Votes
|
||||
within(".participation-not-allowed") do
|
||||
expect(page).to have_content "You must sign in or sign up to vote"
|
||||
end
|
||||
|
||||
expect(page).not_to have_selector(".participation-allowed")
|
||||
end
|
||||
|
||||
def expect_message_to_many_anonymous_votes
|
||||
|
||||
Reference in New Issue
Block a user