add missing spec

This commit is contained in:
Julian Herrero
2018-12-02 17:12:57 +01:00
parent 46b66e9376
commit d819a9ccbc

View File

@@ -72,7 +72,16 @@ feature 'Admin poll questions' do
expect(page).to have_link(proposal.author.name, href: user_path(proposal.author)) expect(page).to have_link(proposal.author.name, href: user_path(proposal.author))
end end
pending "Create from successul proposal show" scenario "Create from successful proposal show" do
poll = create(:poll, name: 'Proposals')
proposal = create(:proposal, :successful)
visit proposal_path(proposal)
click_link "Create question"
expect(page).to have_current_path(new_admin_question_path, ignore_query: true)
expect(page).to have_field('Question', with: proposal.title)
end
scenario 'Update' do scenario 'Update' do
question1 = create(:poll_question) question1 = create(:poll_question)