Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
wip: fixes to make diesel more useful for saucy
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jan 5, 2011
1 parent 4430773 commit 64053a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/diesel/testing/app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
class ApplicationController < ActionController::Base
end

1 change: 1 addition & 0 deletions lib/diesel/testing/app/views/layouts/application.html.erb
@@ -0,0 +1 @@
<%= yield %>
5 changes: 4 additions & 1 deletion lib/diesel/testing/application.rb
Expand Up @@ -7,7 +7,10 @@ module Testing
class Application < Rails::Application class Application < Rails::Application
config.encoding = "utf-8" config.encoding = "utf-8"
config.action_mailer.default_url_options = { :host => 'localhost' } config.action_mailer.default_url_options = { :host => 'localhost' }
config.paths.config.database = "#{APP_ROOT}/database.yml" config.paths.config.database = "#{APP_ROOT}/config/database.yml"
config.paths.config.routes = "#{APP_ROOT}/config/routes.rb"
config.paths.app.views << "#{APP_ROOT}/app/views"
config.paths.app.controllers << "#{APP_ROOT}/app/controllers"
config.paths.log = "tmp/log" config.paths.log = "tmp/log"
config.cache_classes = true config.cache_classes = true
config.whiny_nils = true config.whiny_nils = true
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions lib/diesel/testing/config/routes.rb
@@ -0,0 +1,4 @@
Rails.application.routes.draw do
root :to => "application#show"
end

0 comments on commit 64053a8

Please sign in to comment.