RSpec.describe <%= app.classify %>::Views::<%= controller.classify %>::<%= action.classify %> do let(:exposures) { Hash[foo: 'bar'] } let(:template) { Hanami::View::Template.new('<%= template %>') } let(:view) { described_class.new(template, exposures) } let(:rendered) { view.render } it 'exposes #foo' do pending 'This is an auto-generated test. Edit it and add your own tests.' # Example expect(view.foo).to eq exposures.fetch(:foo) end end