summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
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