fixes build

This commit is contained in:
Juanjo Bazán
2015-07-31 14:54:49 +02:00
parent e2f7b9c505
commit 0ca3d2501f
3 changed files with 7 additions and 2 deletions

View File

@@ -30,6 +30,10 @@ Rails.application.configure do
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = {
host: 'test'
}
config.action_mailer.asset_host = 'http://madrid.test'
# Randomize the order test cases are executed.
config.active_support.test_order = :random

View File

@@ -5,6 +5,7 @@ FactoryGirl.define do
last_name 'Carmena'
sequence(:email) { |n| "manuela#{n}@madrid.es" }
password 'judgmentday'
confirmed_at { Time.now }
end
factory :debate do
@@ -19,7 +20,7 @@ FactoryGirl.define do
association :voter, factory: :user
vote_flag true
end
factory :comment do
commentable
user

View File

@@ -14,7 +14,7 @@ feature 'Users' do
click_button 'Sign up'
expect(page).to have_content 'Welcome! You have signed up successfully.'
expect(page).to have_content "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
end
scenario 'Sign in' do