Permalink
Browse files

add action mailer config in config/environments/test.rb to facilitate…

… running of rspec examples
  • Loading branch information...
lazylester committed Apr 24, 2013
1 parent 7e372b8 commit f432b8109bb9d186fdfd30e8b0e4bc550a3feb61
Showing with 22 additions and 17 deletions.
  1. +5 −0 spec/dummy/config/environments/test.rb
  2. +17 −17 spec/dummy/db/schema.rb
  3. BIN spec/dummy/db/test.sqlite3
@@ -25,6 +25,11 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
+
+ config.action_mailer.default_url_options = { :host => 'localhost:3000' }
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
View
@@ -16,51 +16,51 @@
create_table "action_roles", :force => true do |t|
t.integer "role_id", :limit => 8
t.integer "action_id", :limit => 8
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
create_table "actions", :force => true do |t|
t.string "action_name"
t.integer "controller_id"
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
add_index "actions", ["action_name"], :name => "index_actions_on_action_name"
create_table "controllers", :force => true do |t|
t.string "controller_name"
t.datetime "last_modified"
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
add_index "controllers", ["controller_name"], :name => "index_controllers_on_controller_name"
create_table "roles", :force => true do |t|
t.string "name"
t.string "short_name"
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
t.integer "parent_id"
end
create_table "user_roles", :force => true do |t|
- t.integer "role_id", :limit => 8, :null => false
- t.integer "user_id", :limit => 8, :null => false
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "type"
+ t.integer "role_id", :limit => 8, :null => false
+ t.integer "user_id", :limit => 8, :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.string "type", :default => "PersistentUserRole"
end
create_table "useractions", :force => true do |t|
t.integer "user_id"
t.integer "action_id"
t.string "type"
t.text "params"
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
create_table "users", :force => true do |t|
@@ -78,8 +78,8 @@
t.string "lastName"
t.string "type"
t.string "status"
- t.datetime "created_at"
- t.datetime "updated_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
add_index "users", ["login"], :name => "index_users_on_login"
View
Binary file not shown.

0 comments on commit f432b81

Please sign in to comment.