Sha256: 788778f70614487f13e171f13ff1722d1316f2cb54290f81eed4e5b4ab0186ce

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 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

4 entries across 4 versions & 1 rubygems

Version Path
hanami-1.3.3 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.3.2 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.3.1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.3.0 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb