Sha256: c53030321e22dc8b37c65ea61adc6ec3a51f78de7c39433a4dd8009b86c4ff01

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

RSpec.describe Web::Views::Home::Index, type: :view do
  let(:exposures) { Hash[format: :html] }
  let(:template)  { Hanami::View::Template.new('apps/web/templates/home/index.html.slim') }
  let(:view)      { described_class.new(template, exposures) }
  let(:rendered)  { view.render }

  it 'exposes #format' do
    expect(view.format).to eq exposures.fetch(:format)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flagsmith-4.0.1 example/spec/web/views/home/index_spec.rb
flagsmith-4.0.0 example/spec/web/views/home/index_spec.rb
flagsmith-3.2.0 example/spec/web/views/home/index_spec.rb
flagsmith-3.1.1 example/spec/web/views/home/index_spec.rb
flagsmith-3.1.0 example/spec/web/views/home/index_spec.rb
flagsmith-3.0.1 example/spec/web/views/home/index_spec.rb
flagsmith-3.0.0 example/spec/web/views/home/index_spec.rb