asciinema.org/spec/controllers/home_controller_spec.rb

18 lines
338 B
Ruby
Raw Normal View History

2012-03-04 21:44:04 +00:00
require 'spec_helper'
describe HomeController do
2014-01-17 13:52:37 +00:00
describe '#show' do
before do
allow(controller).to receive(:render)
get :show
2012-04-07 09:13:43 +00:00
end
2014-01-17 13:52:37 +00:00
it "renders template with HomePresenter as page" do
expect(controller).to have_received(:render).
with(locals: { page: kind_of(HomePresenter) })
2012-03-04 21:44:04 +00:00
end
end
end