Skip to content

Instantly share code, notes, and snippets.

@vitorbaptista
Created July 18, 2012 18:37
Show Gist options
  • Save vitorbaptista/3137962 to your computer and use it in GitHub Desktop.
Save vitorbaptista/3137962 to your computer and use it in GitHub Desktop.
Errors running pairwise-api's tests
GEM
remote: http://rubygems.org/
remote: http://gems.github.com/
specs:
actionmailer (2.3.14)
actionpack (= 2.3.14)
actionpack (2.3.14)
activesupport (= 2.3.14)
rack (~> 1.1.0)
activerecord (2.3.14)
activesupport (= 2.3.14)
activeresource (2.3.14)
activesupport (= 2.3.14)
activesupport (2.3.14)
ambethia-smtp-tls (1.1.2)
builder (2.1.2)
cucumber (0.8.5)
builder (~> 2.1.2)
diff-lcs (~> 1.1.2)
gherkin (~> 2.1.4)
json_pure (~> 1.4.3)
term-ansicolor (~> 1.0.4)
daemons (1.1.8)
delayed_job (2.0.6)
daemons
diff-lcs (1.1.3)
factory_girl (1.2.3)
fakeweb (1.2.5)
fastercsv (1.5.1)
formtastic (0.2.5)
gherkin (2.1.5)
trollop (~> 1.16.2)
has_scope (0.4.2)
hoptoad_notifier (2.4.9)
activesupport
builder
inherited_resources (1.0.4)
has_scope (~> 0.4.2)
responders (~> 0.4.3)
jferris-mocha (0.9.5.0.1241126838)
rake
json_pure (1.4.6)
jtrupiano-timecop (0.2.1)
mime-types (1.16)
mysql2 (0.2.18)
newrelic_rpm (3.3.0)
nokogiri (1.5.0)
paperclip (2.3.1)
rack (1.1.3)
rails (2.3.14)
actionmailer (= 2.3.14)
actionpack (= 2.3.14)
activerecord (= 2.3.14)
activeresource (= 2.3.14)
activesupport (= 2.3.14)
rake (>= 0.8.3)
rake (0.9.2.2)
redis (1.0.7)
responders (0.4.8)
rspec (1.3.2)
rspec-rails (1.3.4)
rack (>= 1.0.0)
rspec (~> 1.3.1)
rubaidh-google_analytics (1.1.4)
actionpack
activesupport
sendgrid (0.1.4)
shoulda (2.10.3)
term-ansicolor (1.0.7)
thoughtbot-clearance (0.8.2)
trollop (1.16.2)
webrat (0.5.3)
nokogiri (>= 1.2.0)
rack (>= 1.0)
xml-simple (1.0.12)
yfactorial-utility_scopes (0.2.2)
activerecord (>= 2.1.0)
PLATFORMS
ruby
DEPENDENCIES
ambethia-smtp-tls (= 1.1.2)
bundler (= 1.0.21)
cucumber (= 0.8.5)
delayed_job (= 2.0.6)
factory_girl (= 1.2.3)
fakeweb (= 1.2.5)
fastercsv (= 1.5.1)
formtastic (~> 0.2.2)
has_scope (= 0.4.2)
hoptoad_notifier (= 2.4.9)
inherited_resources (= 1.0.4)
jferris-mocha (= 0.9.5.0.1241126838)
json_pure (= 1.4.6)
jtrupiano-timecop (= 0.2.1)
mime-types (= 1.16)
mysql2 (= 0.2.18)
newrelic_rpm (= 3.3.0)
paperclip (= 2.3.1)
rails (= 2.3.14)
redis (= 1.0.7)
responders (= 0.4.8)
rspec (~> 1.3.1)
rspec-rails (= 1.3.4)
rubaidh-google_analytics (= 1.1.4)
sendgrid (= 0.1.4)
shoulda (~> 2.10.1)
thoughtbot-clearance (= 0.8.2)
webrat (= 0.5.3)
xml-simple (= 1.0.12)
yfactorial-utility_scopes (= 0.2.2)
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
Please install RDoc 2.4.2+ to generate documentation.
DEPRECATION WARNING: Rake tasks in vendor/plugins/jrails/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, vendor/plugins/limerick_rake/tasks, and vendor/plugins/limerick_rake/tasks are deprecated. Use lib/tasks instead. (called from /home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rails-2.3.14/lib/tasks/rails.rb:10)
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Cucumber::Rake::Task#desc called at /home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/cucumber-0.8.5/lib/cucumber/rake/task.rb:140:in `define_task'
WARNING: DSL method Cucumber::Rake::Task#task called at /home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/cucumber-0.8.5/lib/cucumber/rake/task.rb:141:in `define_task'
Cannot find or read /home/vitor/Projects/pairwise-api/config/newrelic.yml
Cannot find or read /home/vitor/Projects/pairwise-api/config/newrelic.yml
........F........FFF...........................FF.FFFFFFF.FFFFF.....................................................................................................................*..FFFFFFFFF............FF.....*..............................F..F...F..The {{key}} interpolation syntax in I18n messages is deprecated. Please use %{key} instead.
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:162:in `interpolate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:157:in `gsub'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:157:in `interpolate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:197:in `preserve_encoding'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:156:in `interpolate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:49:in `translate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n.rb:152:in `translate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:120:in `resolve'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:105:in `default'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:104:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:104:in `default'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb:42:in `translate'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/vendor/i18n-0.4.1/i18n.rb:152:in `t'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/responders-0.4.8/lib/responders/flash_responder.rb:115:in `set_flash_message!'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/responders-0.4.8/lib/responders/flash_responder.rb:92:in `to_html'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/legacy/responder.rb:117:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/legacy/responder.rb:117:in `respond'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/legacy/responder.rb:110:in `call'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/legacy/respond_to.rb:67:in `respond_with'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/base_helpers.rb:250:in `respond_with_dual_blocks'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/inherited_resources-1.0.4/lib/inherited_resources/actions.rb:37:in `create!'
/home/vitor/Projects/pairwise-api/app/controllers/choices_controller.rb:57:in `create'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rbenv/versions/1.8.7-p358/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:567:in `process_with_test'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:447:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:403:in `post'
./spec/controllers/choices_controller_spec.rb:93
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_methods.rb:40:in `instance_eval'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_methods.rb:40:in `execute'
/usr/local/rbenv/versions/1.8.7-p358/lib/ruby/1.8/timeout.rb:53:in `timeout'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_methods.rb:37:in `execute'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_group_methods.rb:219:in `run_examples'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_group_methods.rb:217:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_group_methods.rb:217:in `run_examples'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/example/example_group_methods.rb:103:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:23:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:22:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/example_group_runner.rb:22:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/options.rb:153:in `run_examples'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/command_line.rb:9:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/bin/spec:5
......
Pending:
Choices POST 'create' succeeds and returns a new choice given no optional arguments (Not Yet Implemented)
./spec/integration/choices_spec.rb:14
Questions POST 'create' should return a question object given no optional parameters (choice count doesn't reflect # seed ideas)
./spec/integration/questions_spec.rb:115
1)
Errno::EAGAIN in 'Question exporting data should export zlibed csv to redis after completing an export, if redis option set'
Resource temporarily unavailable - Timeout reading from the socket
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:480:in `read_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:455:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `map'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:442:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `call'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `maybe_lock'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:439:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:343:in `call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:392:in `method_missing'
./spec/models/question_spec.rb:541:
2)
RuntimeError in 'Question catchup algorithm should allow the prompt queue to be cleared'
-ERR unknown command '15'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:558:in `format_error_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:548:in `format_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:485:in `read_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:455:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `map'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:442:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `call'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `maybe_lock'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:439:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:343:in `call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:392:in `method_missing'
/home/vitor/Projects/pairwise-api/app/models/question.rb:519:in `add_prompt_to_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:518:in `each'
/home/vitor/Projects/pairwise-api/app/models/question.rb:518:in `add_prompt_to_queue'
./spec/models/question_spec.rb:452:
3)
RuntimeError in 'Question catchup algorithm should allow a prompt to be added to the prompt queue'
-ERR unknown command '16'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:558:in `format_error_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:548:in `format_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:485:in `read_reply'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:455:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `map'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:453:in `process_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:442:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `call'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:463:in `maybe_lock'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:439:in `raw_call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:343:in `call_command'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/redis-1.0.7/lib/redis/client.rb:392:in `method_missing'
/home/vitor/Projects/pairwise-api/app/models/question.rb:506:in `mark_prompt_queue_for_refill'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
/home/vitor/Projects/pairwise-api/app/models/choice.rb:46:in `update_prompt_queue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `evaluate_method'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:166:in `call'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:93:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:92:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:276:in `run_callbacks'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:344:in `callback'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/callbacks.rb:251:in `create_or_update'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:2577:in `save_without_validation'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/validations.rb:1089:in `save_without_dirty'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/dirty.rb:79:in `save_without_transactions'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:229:in `with_transaction_returning_status'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:196:in `save'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/has_many_association.rb:61:in `insert_record'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:119:in `concat'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:435:in `add_record_to_target_with_callbacks'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:118:in `concat'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:116:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:116:in `concat'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:141:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:140:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:115:in `concat'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:329:in `replace'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:141:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/transactions.rb:182:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:140:in `transaction'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:327:in `replace'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/associations.rb:1331:in `choices='
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/proxy/build.rb:13:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/proxy/build.rb:13:in `set'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/attribute/dynamic.rb:15:in `add_to'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:313:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:311:in `each'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:311:in `run'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/factory_girl-1.2.3/lib/factory_girl/factory.rb:260:in `create'
./spec/models/question_spec.rb:17:
4)
ActiveRecord::RecordNotFound in 'Question catchup algorithm should not return prompts from queue that are deactivated'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
./spec/models/question_spec.rb:470:
5)
ActiveRecord::RecordNotFound in 'Question should return a hash with an prompt id when optional parameters contains 'with_prompt''
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:232:in `get_optional_information'
./spec/models/question_spec.rb:98:
6)
ActiveRecord::RecordNotFound in 'Question should return a hash with an appearance hash when optional parameters contains 'with_appearance''
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:105:
7)
ActiveRecord::RecordNotFound in 'Question should return a hash when optional parameters have more than one optional param '
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:121:
8)
ActiveRecord::RecordNotFound in 'Question should return the same appearance when a visitor requests two prompts without voting'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:134:
9)
ActiveRecord::RecordNotFound in 'Question should return future prompts for a given visitor when future prompt param is passed'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:147:
10)
ActiveRecord::RecordNotFound in 'Question should return the same appearance for future prompts when future prompt param is passed'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:172:
11)
ActiveRecord::RecordNotFound in 'Question should return the next future appearance in future prompts sequence after a vote is made'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:183:
12)
ActiveRecord::RecordNotFound in 'Question should provide average voter information'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:205:
13)
ActiveRecord::RecordNotFound in 'Question should properly handle tracking the prompt cache hit rate when returning the same appearance when a visitor requests two prompts without voting'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/models/question_spec.rb:223:
14)
'Question should create 2000 ideas question in less than 20 seconds' FAILED
expected: < 20,
got: 30.737029
./spec/models/question_spec.rb:249:
15)
ActiveRecord::RecordNotFound in 'Choice voting updates things should update score on a win'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
./spec/models/choice_spec.rb:132:
16)
ActiveRecord::RecordNotFound in 'Choice voting updates things should update score on a loss'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
./spec/models/choice_spec.rb:132:
17)
ActiveRecord::RecordNotFound in 'Choice voting updates things should update win count on a win'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
./spec/models/choice_spec.rb:132:
18)
ActiveRecord::RecordNotFound in 'Choice voting updates things should update loss count on a loss'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
./spec/models/choice_spec.rb:132:
19)
ActiveRecord::RecordNotFound in 'Prompts POST 'vote' should fail without the required 'direction' parameter'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:93:
20)
ActiveRecord::RecordNotFound in 'Prompts POST 'vote' should return a new vote object given no optional parameters'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:93:
21)
ActiveRecord::RecordNotFound in 'Prompts POST 'vote' should correctly set the optional attributes of the vote object'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:93:
22)
ActiveRecord::RecordNotFound in 'Prompts POST 'vote' should return a prompt object if next_prompt is set'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:93:
23)
ActiveRecord::RecordNotFound in 'Prompts POST 'vote' should fail when trying to vote on another site's questions'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:93:
24)
ActiveRecord::RecordNotFound in 'Prompts POST 'skip' should return a new skip object given no optional parameters'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:30:
25)
ActiveRecord::RecordNotFound in 'Prompts POST 'skip' should correctly set the optional attributes of the skip object'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:30:
26)
ActiveRecord::RecordNotFound in 'Prompts POST 'skip' should return a prompt object if next_prompt is set'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:30:
27)
ActiveRecord::RecordNotFound in 'Prompts POST 'skip' should fail when trying to skip another site's questions'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
./spec/integration/prompts_spec.rb:30:
28)
'Questions GET 'show' should correctly set optional parameters' FAILED
expected success? to return true, got false
./spec/integration/questions_spec.rb:190:
29)
'Questions GET 'show' should fail if 'with_prompt' is set but 'visitor_identifier' not provided' FIXED
Expected pending 'figure out argument dependencies' to fail. No Error was raised.
./spec/integration/questions_spec.rb:200:
30)
ActiveRecord::RecordNotFound in 'QuestionsController responds with question with prompt and appearance and visitor information'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
/home/vitor/Projects/pairwise-api/app/controllers/questions_controller.rb:15:in `show'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:567:in `process_with_test'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:447:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:398:in `get'
./spec/controllers/questions_controller_spec.rb:24:
31)
ActiveRecord::RecordNotFound in 'PromptsController POST vote votes on a prompt and responds with optional information'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
/home/vitor/Projects/pairwise-api/app/controllers/prompts_controller.rb:26:in `vote'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:567:in `process_with_test'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:447:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:403:in `post'
./spec/controllers/prompts_controller_spec.rb:77:
32)
ActiveRecord::RecordNotFound in 'PromptsController POST skip records a skip, responds with next prompt'
Couldn't find Prompt with ID=0
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/home/vitor/Projects/pairwise-api/app/models/question.rb:528:in `pop_prompt_queue'
/home/vitor/Projects/pairwise-api/app/models/question.rb:78:in `choose_prompt'
/home/vitor/Projects/pairwise-api/app/models/question.rb:189:in `get_optional_information'
/home/vitor/Projects/pairwise-api/app/controllers/prompts_controller.rb:63:in `skip'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:567:in `process_with_test'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:447:in `process'
/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/test_process.rb:403:in `post'
./spec/controllers/prompts_controller_spec.rb:43:
Finished in 234.283499 seconds
258 examples, 32 failures, 2 pending
rake aborted!
Command /usr/local/rbenv/versions/1.8.7-p358/bin/ruby -I"lib" "/home/vitor/Projects/pairwise-api/vendor/ruby/1.8/gems/rspec-1.3.2/bin/spec" "spec/controllers/choices_controller_spec.rb" "spec/controllers/visitors_controller_spec.rb" "spec/controllers/prompts_controller_spec.rb" "spec/controllers/questions_controller_spec.rb" "spec/routing/prompts_routing_spec.rb" "spec/routing/questions_routing_spec.rb" "spec/routing/visitors_routing_spec.rb" "spec/routing/choices_routing_spec.rb" "spec/integration/questions_spec.rb" "spec/integration/clicks_spec.rb" "spec/integration/prompts_spec.rb" "spec/integration/choices_spec.rb" "spec/integration/items_spec.rb" "spec/integration/visitors_spec.rb" "spec/integration/densities_spec.rb" "spec/models/appearance_spec.rb" "spec/models/prompt_spec.rb" "spec/models/visitor_spec.rb" "spec/models/vote_spec.rb" "spec/models/skip_spec.rb" "spec/models/flag_spec.rb" "spec/models/user_spec.rb" "spec/models/click_spec.rb" "spec/models/choice_spec.rb" "spec/models/question_spec.rb" "spec/helpers/choices_helper_spec.rb" "spec/helpers/prompts_helper_spec.rb" "spec/helpers/questions_helper_spec.rb" "spec/helpers/visitors_helper_spec.rb" "spec/helpers/clicks_helper_spec.rb" --options "/home/vitor/Projects/pairwise-api/spec/spec.opts" failed
Tasks: TOP => default => spec
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment