Sha256: c221153ede4353197839b3a33d899736de81b874d13dd021ad46295b5e52eba2

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

require "spec_helper"

RSpec.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
    expect(rendered).to include('<%= app.classify %>')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-1.1.0.beta3 lib/hanami/cli/commands/generate/app/layout_spec.rspec.erb
hanami-1.1.0.beta2 lib/hanami/cli/commands/generate/app/layout_spec.rspec.erb
hanami-1.1.0.beta1 lib/hanami/cli/commands/generate/app/layout_spec.rspec.erb