Also refactored `its` a bit
Support false and nil subject
Per benchmarks/check_inclusion, this: (class << host; self; end) < mod is faster than this: (class << host; self; end).included_modules.include?(mod) The faster version doesn't work in Ruby 1.8, so we use the slower version in Ruby 1.8, but the faster version in 1.9:w
- Fixes #576.
at_exit: don't mask nonzero exit status due to $!
This allows us to simplify the filter_applies? method on metadata, and gives us a small performance boost by not evaluating procs that would always return false. - Closes #556.
Prefer described_class over describes
Autotest fails if RSpec executable path contains spaces
This change ensures that RSpec's at_exit handler doesn't mask (override) any nonzero exit status, which can happen when Ruby is on it's way out due to an uncaught exception ($!) such as a SyntaxError. Please see this bug report for more information: sunaku/tork#31 (comment)
- Closes #556.
…st ree for now