adds proposal votes

This commit is contained in:
rgarcia
2015-09-13 21:56:52 +02:00
parent d4b3e8be94
commit ad8880d02c
13 changed files with 311 additions and 26 deletions

View File

@@ -135,4 +135,19 @@ module CommonActions
expect(page).to have_content 'Correct code'
end
def expect_message_you_need_to_sign_in
expect(page).to have_content 'You need to sign in or sign up before continuing'
expect(page).to have_selector('.in-favor a', visible: false)
end
def expect_message_to_many_anonymous_votes
expect(page).to have_content 'Too many anonymous votes, verify your account to vote.'
expect(page).to have_selector('.in-favor a', visible: false)
end
def expect_message_only_verified_can_vote
expect(page).to have_content 'This proposal can only be voted by verified users, verify your account.'
expect(page).to have_selector('.in-favor a', visible: false)
end
end