describe Hotspot do it "should work" do Hotspot.count.should == 0 hotspot = Hotspot.new hotspot.transaction do hotspot.save raise ActiveRecord::Rollback end Hotspot.count.should == 0 endend