Skip to content

Instantly share code, notes, and snippets.

@themoxman
Created February 21, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themoxman/9143752 to your computer and use it in GitHub Desktop.
Save themoxman/9143752 to your computer and use it in GitHub Desktop.
~/Desktop/coding_resources/programs/md_notes
16:14:27 davemox@Daves-MacBook-Pro $ bundle exec rspec
................................................................................................*......*...
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'


An error occurred in an after hook
  ActionView::Template::Error: PG::UnableToSend: socket not open
: SELECT "collections".* FROM "collections"  WHERE "collections"."user_id" = $1
  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:786:in `get_last_result'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F
An error occurred in an after hook
  ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor:             SELECT tablename
            FROM pg_tables
            WHERE schemaname = ANY (current_schemas(false))

  occurred at /Users/davemox/.rvm/gems/ruby-2.0.0-p353@md_notes/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:120:in `async_exec'

F

Pending:
  SearchHandler find_notes does not return Notes not in the current collection
    # Not yet implemented
    # ./spec/models/search_handler_spec.rb:58
  Find notes search for note with invalid tags
    # Temporarily disabled with xit
    # ./spec/features/search_spec.rb:60

Failures:

  1) Find notes revise last search
     Failure/Error: expect(current_path).to eq collection_revise_search_path(@collection)

       expected: "/collections/1/search/revise"
            got: "/collections/1/search/results"

       (compared using ==)
     # ./spec/features/search_spec.rb:94:in `block (2 levels) in <top (required)>'

  2) ApplicationController collections_list it assigns all User Collection objects to @collections_list
     Failure/Error: let(:user) { create(:user) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/controllers/application_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/controllers/application_controller_spec.rb:7:in `block (2 levels) in <top (required)>'

  3) ApplicationController set_user sets @user to the currently signed in user
     Failure/Error: let(:user) { create(:user) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/controllers/application_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/controllers/application_controller_spec.rb:7:in `block (2 levels) in <top (required)>'

  4) ApplicationController set_collection does not set @collection if params[:collection_id] is non-existent
     Failure/Error: let(:user) { create(:user) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/controllers/application_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/controllers/application_controller_spec.rb:7:in `block (2 levels) in <top (required)>'

  5) ApplicationController set_collection sets @collection to the current Collection
     Failure/Error: let(:user) { create(:user) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/controllers/application_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/controllers/application_controller_spec.rb:7:in `block (2 levels) in <top (required)>'

  6) Delete a note remove note
     Failure/Error: sign_in_user
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/support/session_helper.rb:5:in `sign_in_user'
     # ./spec/features/note_spec.rb:76:in `block (2 levels) in <top (required)>'

  7) NoteHandler#add_tags with non-empty tag lists adds new and existing Tags to the Note
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:14:in `block (4 levels) in <top (required)>'

  8) NoteHandler#add_tags with empty tag lists returns the note with no associated Tags
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:23:in `block (4 levels) in <top (required)>'

  9) NoteHandler#tag_names with both new and existing tag params returns an array of new and existing Tag names
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:6:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:33:in `block (4 levels) in <top (required)>'

  10) NoteHandler#tag_names with only existing tag params returns an array of existing Tag names
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:44:in `block (4 levels) in <top (required)>'

  11) NoteHandler#tag_names with only new tag params returns array of tag names
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:52:in `block (4 levels) in <top (required)>'

  12) NoteHandler#tag_creator returns existing Tags
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:61:in `block (3 levels) in <top (required)>'

  13) NoteHandler#tag_creator creates new Tags
     Failure/Error: let(:collection) { create(:collection) }
     ActiveRecord::StatementInvalid:
       PG::ConnectionBad: PQsocket() can't get socket descriptor: BEGIN
     # ./spec/models/note_handler_spec.rb:4:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:5:in `block (2 levels) in <top (required)>'
     # ./spec/models/note_handler_spec.rb:67:in `block (3 levels) in <top (required)>'

Finished in 19.77 seconds
120 examples, 13 failures, 2 pending

Failed examples:

rspec ./spec/features/search_spec.rb:86 # Find notes revise last search
rspec ./spec/controllers/application_controller_spec.rb:17 # ApplicationController collections_list it assigns all User Collection objects to @collections_list
rspec ./spec/controllers/application_controller_spec.rb:27 # ApplicationController set_user sets @user to the currently signed in user
rspec ./spec/controllers/application_controller_spec.rb:34 # ApplicationController set_collection does not set @collection if params[:collection_id] is non-existent
rspec ./spec/controllers/application_controller_spec.rb:39 # ApplicationController set_collection sets @collection to the current Collection
rspec ./spec/features/note_spec.rb:75 # Delete a note remove note
rspec ./spec/models/note_handler_spec.rb:13 # NoteHandler#add_tags with non-empty tag lists adds new and existing Tags to the Note
rspec ./spec/models/note_handler_spec.rb:22 # NoteHandler#add_tags with empty tag lists returns the note with no associated Tags
rspec ./spec/models/note_handler_spec.rb:32 # NoteHandler#tag_names with both new and existing tag params returns an array of new and existing Tag names
rspec ./spec/models/note_handler_spec.rb:43 # NoteHandler#tag_names with only existing tag params returns an array of existing Tag names
rspec ./spec/models/note_handler_spec.rb:51 # NoteHandler#tag_names with only new tag params returns array of tag names
rspec ./spec/models/note_handler_spec.rb:60 # NoteHandler#tag_creator returns existing Tags
rspec ./spec/models/note_handler_spec.rb:66 # NoteHandler#tag_creator creates new Tags

Randomized with seed 15305


-------------------------
~/Desktop/coding_resources/programs/md_notes
16:15:07 davemox@Daves-MacBook-Pro $ bundle exec rspec
F..*...................*................................................................................................

Pending:
  SearchHandler find_notes does not return Notes not in the current collection
    # Not yet implemented
    # ./spec/models/search_handler_spec.rb:58
  Find notes search for note with invalid tags
    # Temporarily disabled with xit
    # ./spec/features/search_spec.rb:60

Failures:

  1) Edit a note update note content
     Failure/Error: sign_in_user
     ActiveRecord::RecordNotUnique:
       PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_users_on_email"
       DETAIL:  Key (email)=(dave@example.com) already exists.
       : INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"
     # ./spec/support/session_helper.rb:5:in `sign_in_user'
     # ./spec/features/note_spec.rb:50:in `block (2 levels) in <top (required)>'

Finished in 24.22 seconds
120 examples, 1 failure, 2 pending

Failed examples:

rspec ./spec/features/note_spec.rb:49 # Edit a note update note content

Randomized with seed 25889


-------------------------
~/Desktop/coding_resources/programs/md_notes
16:17:04 davemox@Daves-MacBook-Pro $ rake db:test:clone

-------------------------
~/Desktop/coding_resources/programs/md_notes
16:17:38 davemox@Daves-MacBook-Pro $ bundle exec rspec
..*.............................................................*.......................................................

Pending:
  SearchHandler find_notes does not return Notes not in the current collection
    # Not yet implemented
    # ./spec/models/search_handler_spec.rb:58
  Find notes search for note with invalid tags
    # Temporarily disabled with xit
    # ./spec/features/search_spec.rb:60

Finished in 24.3 seconds
120 examples, 0 failures, 2 pending

Randomized with seed 51937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment