Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 21, 2024
1 parent d78cd43 commit d222f01
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/bake/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,23 @@

expect(events).to be == [:before, :after]
end

it "can wrap unspecified methods" do
events = []

context.wrap('wrap') do
before do
events << :before
end

after do
events << :after
end
end

context.call('wrap')

expect(events).to be == [:before, :after]
end
end
end

0 comments on commit d222f01

Please sign in to comment.