From d983f9e26d44adb9f0157bf0780fcfa8e9605861 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 13 Sep 2015 10:31:06 +0200 Subject: [PATCH] adds question and external link to show spec --- spec/factories.rb | 2 +- spec/features/proposals_spec.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/factories.rb b/spec/factories.rb index 8667cf663..c9047c675 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -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 diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 0f70b4ecc..064299ba8 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -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))