README.md in mongoid-minitest-0.0.3.1 vs README.md in mongoid-minitest-0.1.0

- old
+ new

@@ -1,14 +1,17 @@ # mongoid-minitest [![Build Status](https://secure.travis-ci.org/frodsan/mongoid-minitest.png?branch=master&.png)](http://travis-ci.org/frodsan/mongoid-minitest) [![Dependency Status](https://gemnasium.com/frodsan/mongoid-minitest.png)](https://gemnasium.com/frodsan/mongoid-minitest) -MiniTest matchers for Mongoid. +MiniTest matchers for Mongoid. -## Requirements +## Support -* Ruby 1.9.x -* Mongoid 2.x +This gem supports: +* Ruby 1.9.3 +* Mongoid ~>3.0.2 +* MiniTest ~>3.3.0 + ## Installation Add this line to your application's Gemfile: gem "mongoid-minitest" @@ -21,11 +24,11 @@ $ gem install mongoid-minitest ## Usage -Matchers are available at `Mongoid::Matchers` module. +Matchers are available at `Mongoid::Matchers` module. Setup matchers according to your testing preference: ### minitest/unit class MiniTest::Unit::TestCase @@ -48,11 +51,11 @@ end end # minitest/spec describe Dummy - it "sould test matchers" do + it "should test matchers" do Dummy.must have_field(:name) Dummy.wont have_field(:none) end end @@ -103,11 +106,11 @@ describe Mongoid::Matchers::Validations do subject { Person } it { must validate_presence_of(:name) } - + it { must validate_uniqueness_of(:login).case_insensitive } it { must validate_uniqueness_of(:login).scoped_to(:site) } it { must validate_length_of(:login).in(5..12) } it { must validate_length_of(:login).within(5..12) } @@ -160,22 +163,19 @@ end end ## Contributing -1. Fork it -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Added some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create new Pull Request +1. Fork it. +2. Create your feature branch (`git checkout -b my-new-feature`). +3. Commit your changes (`git commit -am 'Added some feature'`). +4. Push to the branch (`git push origin my-new-feature`). +5. Create new Pull Request. ## Unit Tests -To run unit tests, run `bundle exec rake` or `bundle exec guard` to run in auto mode. +To run unit tests, run `bundle exec rake`. -## Last words +## License -At [EpicLabs](https://github.com/epiclabs/), We're migrating all the tests from `rspec` to `minitest`. I've been using -[mongoid-rspec gem](https://github.com/evansagge/mongoid-rspec) by [evanssage](https://github.com/evansagge). -So, this gem is heavily inspired in Evan's gem and [minitest-matchers](https://github.com/zenspider/minitest-matchers) gem -by [zenspider](https://github.com/zenspider). We love [minitest](https://github.com/seattlerb/minitest) and -we hope that this will be helpful for you. Thanks! +MIT License. Copyright 2012 Francesco Rodriguez. See [LICENSE](https://github.com/frodsan/lego/blob/master/LICENSE) +for more information.