Skip to content

Instantly share code, notes, and snippets.

@jschoolcraft
Created June 23, 2009 19:26
Show Gist options
  • Save jschoolcraft/134772 to your computer and use it in GitHub Desktop.
Save jschoolcraft/134772 to your computer and use it in GitHub Desktop.
.......................................................FF......F..........................F....................*.................................................................................................................................
Pending:
Card deleted card should come out of the trash when a plus card is created (TODO)
/Users/jeff/development/wagn/spec/models/card/trash_spec.rb:11
1)
'Wql2 edited_by/edited should find card edited by joe using subspec' FAILED
expected: [#<Card::Basic id: 258, trunk_id: nil, created_at: "2009-05-21 13:40:31", updated_at: "2009-05-21 13:40:31", current_revision_id: 2174, name: "JoeNow", type: "Basic", extension_id: nil, extension_type: nil, created_by: 3, updated_by: 3, reader_id: 3, reader_type: "Role", tag_id: nil, key: "joe_now", trash: false, appender_type: nil, appender_id: nil, references_expired: nil, indexed_name: nil, indexed_content: nil>],
got: [#<Card::Basic id: 257, trunk_id: nil, created_at: "2009-05-21 13:40:31", updated_at: "2009-05-21 13:40:31", current_revision_id: 2173, name: "JoeLater", type: "Basic", extension_id: nil, extension_type: nil, created_by: 3, updated_by: 3, reader_id: 3, reader_type: "Role", tag_id: nil, key: "joe_later", trash: false, appender_type: nil, appender_id: nil, references_expired: nil, indexed_name: nil, indexed_content: nil>] (using ==)
/Users/jeff/development/wagn/spec/models/search_spec.rb:53:
2)
'Wql2 edited_by/edited should find card edited by Wagn Bot' FAILED
expected: [#<Card::Basic id: 259, trunk_id: nil, created_at: "2009-05-21 13:40:31", updated_at: "2009-05-21 13:40:31", current_revision_id: 2175, name: "AdminNow", type: "Basic", extension_id: nil, extension_type: nil, created_by: 1, updated_by: 1, reader_id: 3, reader_type: "Role", tag_id: nil, key: "admin_now", trash: false, appender_type: nil, appender_id: nil, references_expired: nil, indexed_name: nil, indexed_content: nil>],
got: [#<Card::Basic id: 256, trunk_id: 255, created_at: "2009-05-21 13:40:31", updated_at: "2009-05-21 13:40:31", current_revision_id: 2172, name: "UserForm+*tform", type: "Basic", extension_id: nil, extension_type: "HardTemplate", created_by: 1, updated_by: 1, reader_id: 3, reader_type: "Role", tag_id: 49, key: "user_form+*tform", trash: false, appender_type: nil, appender_id: nil, references_expired: nil, indexed_name: nil, indexed_content: nil>] (using ==)
/Users/jeff/development/wagn/spec/models/search_spec.rb:56:
3)
'Wql2 in should work for content options' FAILED
expected: ["A+B", "T"],
got: ["T", "A+B"] (using ==)
/Users/jeff/development/wagn/spec/models/search_spec.rb:14:
4)
NoMethodError in 'Card with role should lose role extension upon changing type'
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.anonymous?
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:130:in `set_reader'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:108:in `set_permissions'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:107:in `each'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:107:in `set_permissions'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:81:in `set_type'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:6:in `send'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:6:in `set_tracked_attributes'
/Users/jeff/development/wagn/lib/rails_ext/attribute_tracking.rb:28:in `each_pair'
/Users/jeff/development/wagn/lib/rails_ext/attribute_tracking.rb:28:in `each_pair'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:5:in `set_tracked_attributes'
/Users/jeff/development/wagn/app/models/card/tracked_attributes.rb:198:in `append_features'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:93:in `call'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:93:in `run'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `each'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `send'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `run'
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:277:in `run_callbacks'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:315:in `callback'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:221:in `create_or_update'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:2383:in `save_without_validation'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/validations.rb:1009:in `save_without_dirty'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:79:in `save_without_transactions'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in `send'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:179:in `with_transaction_returning_status'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:138:in `transaction'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:178:in `with_transaction_returning_status'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in `save_without_permissions'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:158:in `rollback_active_record_state!'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:146:in `save_without_permissions'
/Users/jeff/development/wagn/app/models/card/permissions.rb:50:in `save'
/Users/jeff/development/wagn/spec/models/card/type_transition_spec.rb:58:
Finished in 32.2983 seconds
241 examples, 4 failures, 1 pending
rake aborted!
Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"/Library/Ruby/Gems/1.8/gems/rspec-1.2.7/lib" "/Library/Ruby/Gems/1.8/gems/rspec-1.2.7/bin/spec" "spec/lib/cardname_spec.rb" "spec/models/cached_card_spec.rb" "spec/models/card/base_spec.rb" "spec/models/card/cardname_spec.rb" "spec/models/card/cardtype_spec.rb" "spec/models/card/comment_spec.rb" "spec/models/card/confirmation_spec.rb" "spec/models/card/create_permissions_spec.rb" "spec/models/card/create_spec.rb" "spec/models/card/permissions_spec.rb" "spec/models/card/personal_spec.rb" "spec/models/card/template_spec.rb" "spec/models/card/trash_spec.rb" "spec/models/card/type_transition_spec.rb" "spec/models/card/validation_spec.rb" "spec/models/search_spec.rb" "spec/models/slot_spec.rb" "spec/models/user/role_spec.rb" --options "/Users/jeff/development/wagn/spec/spec.opts" failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment