7bda0ec7e5
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.)
12 lines
259 B
Ruby
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
|