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