Commit a27cc41b84e59a39c0e49f1aa6c3b13f50cf41cc

Authored by Dan Croak
1 parent 65e6739c

adding user model test by default. fixing SMTP settings.

config/environment.rb
@@ -9,29 +9,8 @@ require File.join(File.dirname(__FILE__), 'boot') @@ -9,29 +9,8 @@ require File.join(File.dirname(__FILE__), 'boot')
9 Rails::Initializer.run do |config| 9 Rails::Initializer.run do |config|
10 # Settings in config/environments/* take precedence over those specified here. 10 # Settings in config/environments/* take precedence over those specified here.
11 11
12 - # Application configuration should go into files in config/initializers  
13 - # -- all .rb files in that directory are automatically loaded.  
14 - # See Rails::Configuration for more options.  
15 -  
16 - # Skip frameworks you're not going to use. To use Rails without a database  
17 - # you must remove the Active Record framework.  
18 - # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]  
19 -  
20 - # Force all environments to use the same logger level  
21 - # (by default production uses :info, the others :debug)  
22 - # config.log_level = :debug  
23 -  
24 - # Make Time.zone default to the specified zone, and make Active Record store time values  
25 - # in the database in UTC, and return them converted to the specified local zone.  
26 - # Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.  
27 config.time_zone = 'UTC' 12 config.time_zone = 'UTC'
28 13
29 - # Use SQL instead of Active Record's schema dumper when creating the test database.  
30 - # This is necessary if your schema can't be completely dumped by the schema dumper,  
31 - # like if you have constraints or database-specific column types  
32 - # config.active_record.schema_format = :sql  
33 -  
34 - # Activate observers that should always be running  
35 - # config.active_record.observers = :cacher, :garbage_collector 14 + config.action_mailer.delivery_method = :smtp
36 end 15 end
37 16
config/initializers/mail.rb
1 -config.action_mailer.delivery_method = :smtp  
2 -  
3 ActionMailer::Base.smtp_settings = { 1 ActionMailer::Base.smtp_settings = {
4 :tls => true, 2 :tls => true,
5 :address => "smtp.gmail.com", 3 :address => "smtp.gmail.com",
test/unit/user_test.rb 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +require File.dirname(__FILE__) + '/../test_helper'
  2 +
  3 +class UserTest < ActiveSupport::TestCase
  4 + should "be valid with factories" do
  5 + assert_valid Factory.build(:user)
  6 + assert_valid Factory.build(:email_confirmed_user)
  7 + end
  8 +end
  9 +