README.md in smart_rspec-0.1.1 vs README.md in smart_rspec-0.1.2
- old
+ new
@@ -224,12 +224,30 @@
```
#### Other matchers
##### include_items
+
+Comparing to array:
+
``` ruby
it { expect(%w(foo bar foobar)).to include_items(%w(foo bar foobar)) }
```
+
+Comparing to multiple arguments:
+
+``` ruby
+it 'includes all items' do
+ item1, item2 = 'foo', 'bar'
+ expect(%w(foo bar)).to include_items(item1, item2))
+end
+```
+
+# Credits
+
+1. Some of the "have" matchers (precisely `have`, `have_at_least` and `have_at_most`) were taken from the `rspec-collection_matchers` gem.
+2. Some of the macros/matchers were inspired in RSpec helpers that I worked along with two friends ([Douglas André](https://github.com/douglasandre) and [Giovanni Bonetti](https://github.com/giovannibonetti)) at the
+[Beauty Date](https://beautydate.com.br) project.
# TODO
- Create macros for model scopes;
- Create macros for controllers;