diff options
Diffstat (limited to 'test/rails/app-1.2.3/app')
-rw-r--r-- | test/rails/app-1.2.3/app/controllers/application.rb | 4 | ||||
-rw-r--r-- | test/rails/app-1.2.3/app/controllers/foo_controller.rb | 5 | ||||
-rw-r--r-- | test/rails/app-1.2.3/app/helpers/application_helper.rb | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/rails/app-1.2.3/app/controllers/application.rb b/test/rails/app-1.2.3/app/controllers/application.rb new file mode 100644 index 0000000..ae8cac0 --- /dev/null +++ b/test/rails/app-1.2.3/app/controllers/application.rb @@ -0,0 +1,4 @@ +class ApplicationController < ActionController::Base + # Pick a unique cookie name to distinguish our session data from others' + session :session_key => "_unicorn_rails_test.#{rand}" +end diff --git a/test/rails/app-1.2.3/app/controllers/foo_controller.rb b/test/rails/app-1.2.3/app/controllers/foo_controller.rb new file mode 100644 index 0000000..7602947 --- /dev/null +++ b/test/rails/app-1.2.3/app/controllers/foo_controller.rb @@ -0,0 +1,5 @@ +class FooController < ApplicationController + def index + render :text => "FOO\n" + end +end diff --git a/test/rails/app-1.2.3/app/helpers/application_helper.rb b/test/rails/app-1.2.3/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/test/rails/app-1.2.3/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end |