Skip to content

Instantly share code, notes, and snippets.

@justinav
Last active February 24, 2016 23:05
Show Gist options
  • Save justinav/41992619c1afffd417d5 to your computer and use it in GitHub Desktop.
Save justinav/41992619c1afffd417d5 to your computer and use it in GitHub Desktop.
rspec output Jan 24 2016
rspec spec
(5.9ms) ALTER TABLE "pins" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
(5.8ms) SELECT schemaname || '.' || tablename
FROM pg_tables
WHERE
tablename !~ '_prt_' AND
tablename <> 'schema_migrations' AND
schemaname = ANY (current_schemas(false))
(7.9ms) select table_name from information_schema.views where table_schema = 'coder-pinterest_test'
(15.6ms) TRUNCATE TABLE "public"."pins" RESTART IDENTITY CASCADE;
(1.2ms) ALTER TABLE "pins" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
(0.3ms) BEGIN
Pin Exists (23.7ms) SELECT 1 AS one FROM "pins" WHERE "pins"."slug" = 'rails-tutorial' LIMIT 1
(0.3ms) ROLLBACK
Finished in 0.49247 seconds (files took 11.92 seconds to load)
0 examples, 0 failures
/Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/attribute_methods.rb:433:in `method_missing': undefined method `image_content_type' for #<Pin:0x007f918545f6c8> (NoMethodError)
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/paperclip-4.3.2/lib/paperclip/validators/attachment_content_type_validator.rb:16:in `validate_each'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validator.rb:151:in `block in validate'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validator.rb:148:in `each'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validator.rb:148:in `validate'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:450:in `public_send'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:450:in `block in make_lambda'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in `block in simple'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:182:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:182:in `block in conditional'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in `block in simple'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_validate_callbacks'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validations.rb:395:in `run_validations!'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validations/callbacks.rb:113:in `block in run_validations!'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_validation_callbacks'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validations/callbacks.rb:113:in `run_validations!'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activemodel-4.2.0/lib/active_model/validations.rb:334:in `valid?'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/validations.rb:58:in `valid?'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/validations.rb:83:in `perform_validations'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/validations.rb:37:in `save'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/attribute_methods/dirty.rb:21:in `save'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:347:in `block in with_transaction_returning_status'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:220:in `transaction'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:344:in `with_transaction_returning_status'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:286:in `block in save'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/transactions.rb:285:in `save'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.0/lib/active_record/persistence.rb:34:in `create'
from /Users/HOME/Sites/ruby/rails_apps/rails-pinning-app/db/seeds.rb:1:in `<top (required)>'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/railties-4.2.0/lib/rails/engine.rb:547:in `load_seed'
from /Users/HOME/Sites/ruby/rails_apps/rails-pinning-app/spec/spec_helper.rb:11:in `block (2 levels) in <top (required)>'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:424:in `instance_exec'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/example.rb:424:in `instance_exec'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/hooks.rb:357:in `run'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1724:in `block in run_hooks_with'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1724:in `each'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1724:in `run_hooks_with'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1679:in `with_suite_hooks'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:114:in `block in run_specs'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:77:in `report'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:113:in `run_specs'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:89:in `run'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:73:in `run'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:41:in `invoke'
from /Users/HOME/.rvm/gems/ruby-2.1.6/gems/rspec-core-3.4.1/exe/rspec:4:in `<top (required)>'
from /Users/HOME/.rvm/gems/ruby-2.1.6/bin/rspec:23:in `load'
from /Users/HOME/.rvm/gems/ruby-2.1.6/bin/rspec:23:in `<main>'
from /Users/HOME/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `eval'
from /Users/HOME/.rvm/gems/ruby-2.1.6/bin/ruby_executable_hooks:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment