Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Mocked Objects do not pass block to process method #76
Using the latest version of mocha (0.11.0) caused the test suite in capistrano to break on 1.8.7 and REE (1.9.3 worked fine).
The failure happened in: transfer_test.rb. The problem is that when the static method: Capistrano:Transfer.process is passed a block, when using the latest version of mocha the block was being sent through as nil, even though a block was provided. If this function is renamed to something else like:
The block gets passed as expected.
I added a pull request to lock the version of mocha to the last version that worked: 0.10.5.
This should be fixed in 379c9cd. Please let me know if not. The problem was that