Sha256: 99f960744151a1361436c68ea19b5b2927cda230e0f42c030815d8236877bac5
Contents?: true
Size: 546 Bytes
Versions: 6
Compression:
Stored size: 546 Bytes
Contents
require_relative '<%= config[:relative_view_path] %>' RSpec.describe <%= config[:app] %>::Views::<%= config[:controller] %>::<%= config[:action] %> do let(:exposures) { Hash[foo: 'bar'] } let(:template) { Hanami::View::Template.new('<%= config[:template_path] %>') } let(:view) { described_class.new(template, exposures) } let(:rendered) { view.render } it 'exposes #foo' do pending 'This is an auto-generated test. Edit it and add your own tests.' # Example expect(view.foo).to eq exposures.fetch(:foo) end end
Version data entries
6 entries across 6 versions & 1 rubygems