Skip to content

Commit

Permalink
Update to reflect hanami/hanami#860
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Jun 29, 2021
1 parent 6289569 commit 6347716
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/web/views/books/create_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
RSpec.describe Web::Views::Books::Create, type: :view do
let(:exposures) { Hash[foo: 'bar'] }
let(:exposures) { Hash[format: :html] }
let(:template) { Hanami::View::Template.new('apps/web/templates/books/create.html.erb') }
let(:view) { described_class.new(template, exposures) }
let(:rendered) { view.render }

it 'exposes #foo' do
skip 'This is an auto-generated test. Edit it and add your own tests.'

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

0 comments on commit 6347716

Please sign in to comment.