Skip to content

Commit

Permalink
fix: matching for blocks in flexmock 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Sep 8, 2024
1 parent 15f0c3b commit 96dc422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/packages/test_cmake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def make_cmake_lists(contents)
flexmock(package).should_receive(:configure).
once.pass_thru
flexmock(Autobuild).should_receive(:make_subcommand).
with(package, 'build', Proc).once.pass_thru
with(package, 'build').with_block.once.pass_thru
# prepare is for the gnumake detection, which is cached
flexmock(package).should_receive(:run).
with('prepare', any, any).
Expand All @@ -43,7 +43,7 @@ def make_cmake_lists(contents)
with('build', 'cmake', '.').
once.pass_thru
flexmock(package).should_receive(:run).
with('build', 'make', any, Proc).
with('build', 'make', any).
once.pass_thru
flexmock(package).should_receive(:run).
with('install', 'make', any, 'install').
Expand Down

0 comments on commit 96dc422

Please sign in to comment.