adds question and external link to show spec
This commit is contained in:
@@ -105,7 +105,7 @@ FactoryGirl.define do
|
||||
sequence(:title) { |n| "Proposal #{n} title" }
|
||||
description 'Proposal description'
|
||||
question 'Proposal question'
|
||||
external_url 'http://decide.madrid.es'
|
||||
external_url 'http://external_documention.es'
|
||||
terms_of_service '1'
|
||||
association :author, factory: :user
|
||||
|
||||
|
||||
@@ -40,7 +40,9 @@ feature 'Proposals' do
|
||||
visit proposal_path(proposal)
|
||||
|
||||
expect(page).to have_content proposal.title
|
||||
expect(page).to have_content "Proposal question"
|
||||
expect(page).to have_content "Proposal description"
|
||||
expect(page).to have_content "http://external_documention.es"
|
||||
expect(page).to have_content proposal.author.name
|
||||
expect(page).to have_content I18n.l(proposal.created_at.to_date)
|
||||
expect(page).to have_selector(avatar(proposal.author.name))
|
||||
|
||||
Reference in New Issue
Block a user