Skip to content

Commit

Permalink
fix for ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Jul 12, 2016
1 parent c1cf9b8 commit dd34a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/flexmock/partial_mock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def initialize_stub(recorder, expectations_block)
super(*args, &block)
end
end
@obj.prepend @initialize_override
override = @initialize_override
@obj.class_eval { prepend override }
end
if expectations_block
@initialize_expectation_blocks << expectations_block
Expand Down

0 comments on commit dd34a02

Please sign in to comment.