fixes build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user