asciinema.org/spec/controllers/home_controller_spec.rb

18 lines
346 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
it "renders template with HomePagePresenter as page" do
2014-01-17 13:52:37 +00:00
expect(controller).to have_received(:render).
with(locals: { page: kind_of(HomePagePresenter) })
2012-03-04 21:44:04 +00:00
end
end
end