Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created July 8, 2010 20:55
Show Gist options
  • Save wjessop/468605 to your computer and use it in GitHub Desktop.
Save wjessop/468605 to your computer and use it in GitHub Desktop.
(master) pleb:testfail will$ rake spec
(in /Users/will/www/testfail)
NOTICE: CREATE TABLE will create implicit sequence "fleas_id_seq" for serial column "fleas.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "fleas_pkey" for table "fleas"
NOTICE: CREATE TABLE will create implicit sequence "tentacles_id_seq" for serial column "tentacles.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "tentacles_pkey" for table "tentacles"
FWARNING: there is already a transaction in progress
F
1) Tentacle shizzle should fail because of the paperclip validation
Failure/Error: Tentacle.create!(@valid_attributes)
Validation failed: Flipper content type There was an error with the file you uploaded, please ensure it is a valid zip file.
# /Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/validations.rb:46:in `save!'
<snip>
2) Tentacle shizzle should not be operating inside the previous transaction, but it is
Failure/Error: @flea = Flea.create! :name => "Barney"
Validation failed: Name has already been taken
# /Library/Ruby/Gems/1.8/gems/activerecord-3.0.0.beta4/lib/active_record/validations.rb:46:in `save!'
<snip>
Finished in 0.1279 seconds
2 examples, 2 failures
rake aborted!
bundle exec /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib -Ispec "./spec/models/flea_spec.rb" "./spec/models/tentacle_spec.rb" failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment