README.rdoc in ratnikov-shoulda-2.0.6.3 vs README.rdoc in ratnikov-shoulda-2.9.0

- old
+ new

@@ -5,10 +5,11 @@ Helpers:: #context and #should give you rSpec like test blocks. In addition, you get nested contexts and a much more readable syntax. Macros:: Generate hundreds of lines of Controller and ActiveRecord tests with these powerful macros. They get you started quickly, and can help you ensure that your application is conforming to best practices. Assertions:: Many common rails testing idioms have been distilled into a set of useful assertions. +Matchers:: Rspec-compatible matchers providing the same tests as Shoulda macros. = Usage === Context Helpers (Shoulda::Context) @@ -52,11 +53,11 @@ should_belong_to :user should_have_many :tags, :through => :taggings should_require_unique_attributes :title - should_require_attributes :body, :message => /wtf/ - should_require_attributes :title + should_validate_presence_of :body, :message => /wtf/ + should_validate_presence_of :title should_only_allow_numeric_values_for :user_id end class UserTest < Test::Unit::TestCase should_have_many :posts