0
0
zero/spec/unit/controller/renderer_spec.rb
Gibheer 7bda0ec7e5 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.)
2012-12-13 08:45:03 +01:00

12 lines
259 B
Ruby

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({}).renderer).to be(renderer)
end
end