You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
338 B
Ruby
18 lines
338 B
Ruby
require 'spec_helper'
|
|
|
|
describe HomeController do
|
|
|
|
describe '#show' do
|
|
before do
|
|
allow(controller).to receive(:render)
|
|
get :show
|
|
end
|
|
|
|
it "renders template with HomePresenter as page" do
|
|
expect(controller).to have_received(:render).
|
|
with(locals: { page: kind_of(HomePresenter) })
|
|
end
|
|
end
|
|
|
|
end
|