diff options
author | Gibheer <gibheer@gmail.com> | 2012-12-13 08:45:03 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-12-13 08:45:03 +0100 |
commit | 7bda0ec7e5f6ead0af610f0393c4e039fad9dbf1 (patch) | |
tree | 18741bc721d87b62906dc38e2effc801f1969518 /spec/unit/controller | |
parent | 38bde320ac7ba70b5d3a0320f70080062a8790c0 (diff) |
added options to controller
This avoids hardcoding the options into the controller and therefore
should it make possible to use Rack::Request or Sinatra apps as
requests. (That sounds so weird.)
Diffstat (limited to 'spec/unit/controller')
-rw-r--r-- | spec/unit/controller/renderer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/controller/renderer_spec.rb b/spec/unit/controller/renderer_spec.rb index c840f23..21664ec 100644 --- a/spec/unit/controller/renderer_spec.rb +++ b/spec/unit/controller/renderer_spec.rb @@ -3,9 +3,9 @@ require 'spec_helper' describe Zero::Controller, '#renderer' do subject { Zero::Controller } let(:renderer) { Object.new } - + it 'returns the set renderer' do subject.renderer = renderer - expect(subject.new(Object.new).renderer).to be(renderer) + expect(subject.new({}).renderer).to be(renderer) end end |