module Shoulda::Macros
def should_create(class_name)
should_create :post
setup { Post.create(post_attributes) }
context "creating a post" do
Example:
created.
Macro that creates a test asserting that a record of the given class was
def should_create(class_name) should_change_record_count_of(class_name, 1, 'create') end