README.md in validation_matcher-0.0.1 vs README.md in validation_matcher-0.1.0

- old
+ new

@@ -1,10 +1,19 @@ -Validation Matcher -================== +Validation Matcher [![build status][status-image]][ci] +====================================================== +About +----- + Use Rails 3 validation reflection to test validations. +URLs: + +- Github: https://github.com/bm5k/validation_matcher/ +- Documentation: http://rubydoc.info/github/BM5k/validation_matcher/master/frames +- RubyGems: https://rubygems.org/gems/validation_matcher + Installation ------------ Add to your Gemfile and run the `bundle` command to install it. @@ -24,14 +33,18 @@ validates :field_c, presence: true, uniquness: {case_insensitive: false} end require 'spec_helper' - describe Subscription do - - its(:field_a) { should validate :presence } - its(:field_b) { should validate :uniqueness } - its(:field_c) { should validate :presence } - its(:field_c) { should validate :uniqueness, { case_insensitive: false }} - + describe Foo do + it { should validate(:presence).of(:field_a) } + it { should validate(:presence).of(:field_b) } + it { should validate(:presence).of(:field_c).with(case_insensitive: false) } + it { should validate(:uniqueness).of(:field_b).with(options) } end ``` + +<!-- links --> +[ci]: http://travis-ci.org/BM5k/validation_matcher "build status" + +<!-- images --> +[status-image]: https://secure.travis-ci.org/BM5k/validation_matcher.png?branch=master