adds specs for stats in queue

This commit is contained in:
rgarcia
2015-09-09 14:40:32 +02:00
parent dca7e1e38f
commit b2690348db
2 changed files with 56 additions and 0 deletions

View File

@@ -34,6 +34,17 @@ module CommonActions
click_button 'Send me reset password instructions'
end
def create_a_debate
fill_in 'debate_title', with: 'Acabar con los desahucios'
fill_in 'debate_description', with: 'Esto es un tema muy importante porque...'
fill_in 'debate_captcha', with: correct_captcha_text
check 'debate_terms_of_service'
click_button 'Start a debate'
expect(page).to have_content 'Debate was successfully created.'
end
def comment_on(debate)
user = create(:user)