Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wip: fixes to make diesel more useful for saucy

  • Loading branch information...
commit 64053a8eb597398726646602ecdfc829eb2ac191 1 parent 4430773
@jferris jferris authored
View
3  lib/diesel/testing/app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+end
+
View
1  lib/diesel/testing/app/views/layouts/application.html.erb
@@ -0,0 +1 @@
+<%= yield %>
View
5 lib/diesel/testing/application.rb
@@ -7,7 +7,10 @@ module Testing
class Application < Rails::Application
config.encoding = "utf-8"
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.cache_classes = true
config.whiny_nils = true
View
0  lib/diesel/testing/database.yml → lib/diesel/testing/config/database.yml
File renamed without changes
View
4 lib/diesel/testing/config/routes.rb
@@ -0,0 +1,4 @@
+Rails.application.routes.draw do
+ root :to => "application#show"
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.