Sha256: d29a22243c053af654cbe6bee7b76cf36e13581feac29b96212887129073b3d1

Contents?: true

Size: 407 Bytes

Versions: 12

Compression:

Stored size: 407 Bytes

Contents

require "spec_helper"

describe <%= app.classify %>::Views::ApplicationLayout do
  let(:layout)   { <%= app.classify %>::Views::ApplicationLayout.new(template, {}) }
  let(:rendered) { layout.render }
  let(:template) { Hanami::View::Template.new('apps/<%= app %>/templates/application.html.<%= template %>') }

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hanami-1.3.0.beta1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.2.0 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.2.0.rc2 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.2.0.rc1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.2.0.beta2 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.2.0.beta1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.0 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.0.rc1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.0.beta3 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.0.beta2 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb
hanami-1.1.0.beta1 lib/hanami/cli/commands/generate/app/layout_spec.minitest.erb