Sha256: 80962b0cb397ca864962a987c66bc3ee22f0cd050104c521c7e86cda4838ae84

Contents?: true

Size: 339 Bytes

Versions: 6

Compression:

Stored size: 339 Bytes

Contents

require "spec_helper"

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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