Skip to content

Instantly share code, notes, and snippets.

@jbuehring
Created March 15, 2011 15:46
Show Gist options
  • Select an option

  • Save jbuehring/870908 to your computer and use it in GitHub Desktop.

Select an option

Save jbuehring/870908 to your computer and use it in GitHub Desktop.
jbuehring@dev:~/apptastic$ bundle exec rake test --trace
(in /home/jbuehring/apptastic)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute test:units
/home/jbuehring/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -I"lib:test" "/home/jbuehring/.rvm/gems/ruby-1.8.7-p334@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/answer_test.rb" "test/unit/user_prompt_test.rb" "test/unit/question_type_test.rb" "test/unit/survey_test.rb" "test/unit/prompt_type_test.rb" "test/unit/user_answer_choice_test.rb" "test/unit/survey_prompt_test.rb" "test/unit/survo_test.rb" "test/unit/respondent_test.rb" "test/unit/user_question_test.rb"
* WARNING: 'test: a Survo processing a TimeQuestion Survey receiving input for a TimeQuestion should not change Respondent.count. ' is already defined
Loaded suite /home/jbuehring/.rvm/gems/ruby-1.8.7-p334@global/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...................EE.....
Finished in 0.607344 seconds.
1) Error:
test: a Survo processing a single-Question Survey receiving an invalid choice for a Question with constrained AnswerChoices should initialize some Answer objects. (SurvoTest):
ActiveRecord::StatementInvalid: Mysql::Error: Cannot delete or update a parent row: a foreign key constraint fails (`ibp-dev`.`usr_survey_answer_choices`, CONSTRAINT `usac_usr_survey_question_id_fk` FOREIGN KEY (`usr_survey_question_id`) REFERENCES `usr_survey_questions` (`usr_survey_question_id`) ON UPDATE): DELETE FROM `usr_survey_questions` WHERE `usr_survey_question_id` = 2
/test/unit/survo_test.rb:88:in `__bind_1300203953_608772'
/test/unit/survo_test.rb:88:in `__bind_1300203953_608772'
shoulda (2.11.3) lib/shoulda/context.rb:400:in `call'
shoulda (2.11.3) lib/shoulda/context.rb:400:in `run_current_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:399:in `each'
shoulda (2.11.3) lib/shoulda/context.rb:399:in `run_current_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:391:in `run_all_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:395:in `run_parent_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:379:in `test: a Survo processing a single-Question Survey receiving an invalid choice for a Question with constrained AnswerChoices should initialize some Answer objects. '
2) Error:
test: a Survo processing a single-Question Survey receiving an invalid choice for a Question with constrained AnswerChoices should not change Respondent.count. (SurvoTest):
ActiveRecord::StatementInvalid: Mysql::Error: Cannot delete or update a parent row: a foreign key constraint fails (`ibp-dev`.`usr_survey_answer_choices`, CONSTRAINT `usac_usr_survey_question_id_fk` FOREIGN KEY (`usr_survey_question_id`) REFERENCES `usr_survey_questions` (`usr_survey_question_id`) ON UPDATE): DELETE FROM `usr_survey_questions` WHERE `usr_survey_question_id` = 2
/test/unit/survo_test.rb:88:in `__bind_1300203953_614188'
/test/unit/survo_test.rb:88:in `__bind_1300203953_614188'
shoulda (2.11.3) lib/shoulda/context.rb:400:in `call'
shoulda (2.11.3) lib/shoulda/context.rb:400:in `run_current_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:399:in `each'
shoulda (2.11.3) lib/shoulda/context.rb:399:in `run_current_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:391:in `run_all_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:395:in `run_parent_setup_blocks'
shoulda (2.11.3) lib/shoulda/context.rb:379:in `test: a Survo processing a single-Question Survey receiving an invalid choice for a Question with constrained AnswerChoices should not change Respondent.count. '
26 tests, 255 assertions, 0 failures, 2 errors
** Invoke test:functionals (first_time)
** Invoke db:test:prepare
** Execute test:functionals
/home/jbuehring/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -I"lib:test" "/home/jbuehring/.rvm/gems/ruby-1.8.7-p334@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
** Invoke test:integration (first_time)
** Invoke db:test:prepare
** Execute test:integration
/home/jbuehring/.rvm/rubies/ruby-1.8.7-p334/bin/ruby -I"lib:test" "/home/jbuehring/.rvm/gems/ruby-1.8.7-p334@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
Errors running test:units!
jbuehring@dev:~/apptastic$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment