README.markdown in dm-rspec-0.1.0 vs README.markdown in dm-rspec-0.1.1

- old
+ new

@@ -23,12 +23,15 @@ * belong\_to * have\_many * have\_many\_and\_belong\_to * have\_property -* have(n).errors_on(:property) -* have_many(:association).trough(:another_association) +* have(n).errors\_on(:property) +* have\_many(:association).trough(:another\_association) +* validate\_presence\_of(:property) +* validate\_uniqueness\_of(:property) +* validate\_format\_of(:property).with(/regexp/) ## Examples Assume you have the next models: @@ -61,14 +64,17 @@ specify {Book.should belong_to :author} specify {Author.should have_many :books} specify {Genre.should have_many_and_belong_to :books} specify {Books.should have_many_and_belong_to :genres} + specify {Books.should validates_presence_of :name} + it 'has errors' do book = Book.new(:name => 'fails on two validations') book.valid? book.should have(2).errors_on(:name) end + ## TODO Implement the next matchers: