Sha256: bfeb6cdb1496a7996960bf29d68591b58e888952a72e3d5f82389b3d3d54b5c9

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

require "spec_helper"

describe <%= app.classify %>::Views::ApplicationLayout do
  let(:layout)   { <%= app.classify %>::Views::ApplicationLayout.new({ format: :html }, "contents") }
  let(:rendered) { layout.render }

  it 'contains application name' do
    _(rendered).must_include('<%= app.classify %>')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanami-1.3.5 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.3.4 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb