aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2013-01-11 13:21:02 +0100
committerGibheer <gibheer@gmail.com>2013-01-11 16:02:26 +0100
commit399e0ea3383732aa2a29557ed8344cae74632e8e (patch)
tree29effc7608f25a0b3740a46e2e8475171209a8a5 /spec/spec_helper.rb
parentf9fd98510b7ccc6aa5bb8685fa1a7e144eb4d737 (diff)
use class_options for the controller
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 1b0dd61..5711e6c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -19,9 +19,12 @@ class SpecTemplateContext
end
end
-class SpecController < Zero::Controller
- def process; end
- def render; @response = [200, {'Content-Type' => 'text/html'}, ['foo']]; end
+def create_controller
+ Class.new(Zero::Controller) do
+ def process
+ @response.body = 'correct'
+ end
+ end
end
class SpecApp