Closed esse closed 7 years ago
@egonSchiele do contracts_spec_2.0.rb
spec should pass for all ruby versions? or is it specific to some type?
@esse they are specs for all rubies >= v 2.0. The logic to load that file lives here. So it is a legitimate test failure. Definitely one of the toughest parts of this codebase!
@egonSchiele I run rake
(as README encouraged) instead of rspec
(as run by travis). And rake
shows me that all tests are passing, but rspec
show failures.
I believe it would be nice to change it in a README - I will propose pull request with that.
@egonSchiele I commited fixes to that issue. Hoewever travis has some problems with resolving gems for Ruby 1.8 and 1.9.
Nice work, thank you!
This commit fixes issue with contracts for function that takes blocks. Return type is now enforced properly for blocks.