features/built_in_matchers/README.md in rspec-expectations-2.99.2 vs features/built_in_matchers/README.md in rspec-expectations-3.0.0.beta1
- old
+ new
@@ -75,16 +75,19 @@
expect(:a => 1).to have_key(:a)
## Collection membership
expect(actual).to include(expected)
+ expect(array).to match_array(expected)
### Examples
expect([1,2,3]).to include(1)
expect([1,2,3]).to include(1, 2)
expect(:a => 'b').to include(:a => 'b')
expect("this string").to include("is str")
+ expect([1,2,3]).to match_array([1,2,3])
+ expect([1,2,3]).to match_array([3,2,1])
## Ranges (1.9 only)
expect(1..10).to cover(3)