Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… running of rspec examples
  • Loading branch information...
commit f432b8109bb9d186fdfd30e8b0e4bc550a3feb61 1 parent 7e372b8
@lazylester lazylester authored
View
5 spec/dummy/config/environments/test.rb
@@ -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
34 spec/dummy/db/schema.rb
@@ -16,15 +16,15 @@
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"
@@ -32,8 +32,8 @@
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"
@@ -41,17 +41,17 @@
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|
@@ -59,8 +59,8 @@
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
BIN  spec/dummy/db/test.sqlite3
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.