asciinema.org/spec/controllers/home_controller_spec.rb
2014-08-30 20:10:49 +02:00

18 lines
347 B
Ruby

require 'rails_helper'
describe HomeController do
describe '#show' do
before do
allow(controller).to receive(:render)
get :show
end
it "renders template with HomePagePresenter as page" do
expect(controller).to have_received(:render).
with(locals: { page: kind_of(HomePagePresenter) })
end
end
end