Sha256: 037f7b93df81fefb1f80a85e25bceec45c431fffc39c6fc7267a828bf6ca8067
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
# Upgrade to rspec-2.0 ## What's been removed ### simple_matcher Use Rspec::Matchers.define instead. For example, if you had: def eat_cheese simple_matcher("eat cheese") do |actual| actual.eat?(:cheese) end end Change it to: Rspec::Matchers.define :eat_cheese do match do |actual| actual.eat?(:cheese) end end ### wrap_expectation Use Rspec::Matchers.define instead. Rspec::Matchers.define :eat_cheese do match do |actual| actual.should eat?(:cheese) end end Rspec::Matchers.define :eat_cheese do include MyCheesyAssertions match_unless_raises Test::Unit::AssertionFailedError do |actual| assert_eats_chesse actual end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-expectations-2.0.0.a2 | Upgrade.markdown |