Skip to content

Instantly share code, notes, and snippets.

@revelation
Created July 27, 2008 20:19
Show Gist options
  • Save revelation/2800 to your computer and use it in GitHub Desktop.
Save revelation/2800 to your computer and use it in GitHub Desktop.
describe '#save' do
describe 'with a new resource' do
it "should save child assosciations"
it "should set defaults before create"
it "should create when the resource is dirty" do
zoo = Zoo.new
zoo.name = "San Diego"
zoo.should_receive(:create)
zoo.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment