lib/hanami/cli/commands/generate/action/view_spec.minitest.erb in hanami-1.1.0 vs lib/hanami/cli/commands/generate/action/view_spec.minitest.erb in hanami-1.1.1

- old
+ new

@@ -1,15 +1,12 @@ require_relative '../../../spec_helper' describe <%= app.classify %>::Views::<%= classified_controller_name %>::<%= action.classify %> do - let(:exposures) { Hash[foo: 'bar'] } + let(:exposures) { Hash[format: :html] } 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) + it 'exposes #format' do + view.format.must_equal exposures.fetch(:format) end end