Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing on development branch #124

Open
adamhowardprice opened this issue Feb 11, 2016 · 0 comments
Open

Tests failing on development branch #124

adamhowardprice opened this issue Feb 11, 2016 · 0 comments

Comments

@adamhowardprice
Copy link

Not sure if I need to change something in my environment to get these tests to pass, but I thought I might as well add an issue for it. Once I get these to pass I think it would be helpful to add CI with Travis or similar.

I created a fake Facebook app and added my credentials to .env, still failing those Facebook tests.

$ bundle exec rspec

I, [2016-02-10T21:08:01.128212 #43979]  INFO -- : ** [Raven] Raven 0.15.2 configured not to send errors.

Randomized with seed 22325
�[33m[rspec-sidekiq] WARNING! Sidekiq will *NOT* process jobs in this environment. See https://github.com/philostler/rspec-sidekiq/wiki/FAQ-&-Troubleshooting�[0m
............................................................................................................................................F......................................................................................................FFFFFFFFF.....F.........................................F.................................................................................................................................................F......FFFF......................................................

Failures:

  1) AddFacebookProfilePicture adds a profile picture from facebook
     Failure/Error: facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/workers/add_profile_pic/add_profile_pic_from_facebook.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 3 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/workers/add_facebook_profile_picture_spec.rb:8:in `block (2 levels) in <top (required)>'

  2) Users API POST /users with Facebook when the user does not already exist creates a valid user without a photo image
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/when_the_user_does_not_already_exist/creates_a_user_without_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 7 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  3) Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'friends' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_without_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 7 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  4) Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'everyone' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_without_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 7 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  5) Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'state' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_without_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 7 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  6) Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'everyone' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_with_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 5 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  7) Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'state' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_with_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 5 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  8) Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'friends' leaderboard
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/automatic_leaderboard_update/created_with_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 5 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  9) Users API POST /users with Facebook when the user already exists updates the user without a photo image
     Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
     VCR::Errors::UnhandledHTTPRequestError:


       ================================================================================
       An HTTP request has been made that VCR does not know how to handle:
         POST https://graph.facebook.com/962682103764838/accounts/test-users

       VCR is currently using the following cassette:
         - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/when_the_user_already_exists/updates_the_user_without_a_photo.yml
         - :record => :once
         - :match_requests_on => [:method, :uri]

       Under the current configuration VCR can not find a suitable HTTP interaction
       to replay and is prevented from recording new requests. There are a few ways
       you can deal with this:

         * If you're surprised VCR is raising this error
           and want insight about how VCR attempted to handle the request,
           you can use the debug_logger configuration option to log more details [1].
         * You can use the :new_episodes record mode to allow VCR to
           record this new request to the existing cassette [2].
         * If you want VCR to ignore this request (and others like it), you can
           set an `ignore_request` callback [3].
         * The current record mode (:once) does not allow new requests to be recorded
           to a previously recorded cassette. You can delete the cassette file and re-run
           your tests to allow the cassette to be recorded with this request [4].
         * The cassette contains 7 HTTP interactions that have not been
           played back. If your request is non-deterministic, you may need to
           change your :match_requests_on cassette option to be more lenient
           or use a custom request matcher to allow it to match [5].

       [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
       [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
       [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
       [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
       [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
       ================================================================================
     # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  10) Users API POST /users with Facebook when the user already exists updates the user with a user uploaded image
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/users/with_facebook/when_the_user_already_exists/updates_the_user_with_a_user_uploaded_image.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 5 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/requests/api/users_spec.rb:19:in `block (4 levels) in <top (required)>'

  11) Users API POST /users/me can update a photo
      Failure/Error: expect(@user.photo.url(:original)).to include "cloudfront"
        expected "https:///users/11/original.png?1455156486" to include "cloudfront"
      # ./spec/requests/api/users_spec.rb:523:in `block (4 levels) in <top (required)>'
      # ./spec/requests/api/users_spec.rb:512:in `block (3 levels) in <top (required)>'

  12) User paperclip with cloudfront should have cloudfront in the URL
      Failure/Error: expect(@user.photo.url(:thumb)).to include 'cloudfront'
        expected "https:///users/2225/thumb.jpg?1455156487" to include "cloudfront"
      # ./spec/models/user_spec.rb:61:in `block (4 levels) in <top (required)>'

  13) AddFacebookFriendsWorker adds friends from facebook
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/workers/add_facebook_friends/adds_friends_from_facebook.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 6 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/workers/add_facebook_friends_worker_spec.rb:8:in `block (2 levels) in <top (required)>'

  14) Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's no user with that facebook_id in the database fails with a 404
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/tokens/facebook_user_found.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 10 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/requests/api/tokens_spec.rb:87:in `block (4 levels) in <top (required)>'

  15) Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's a user with facebook_id in the database updates leaderboards
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/tokens/facebook_user_found.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 10 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/requests/api/tokens_spec.rb:87:in `block (4 levels) in <top (required)>'

  16) Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's a user with facebook_id in the database returns a token
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/tokens/facebook_user_found.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 10 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/requests/api/tokens_spec.rb:87:in `block (4 levels) in <top (required)>'

  17) Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user doesn't exist fails with 400
      Failure/Error: @facebook_user = test_users.create(true, "email,user_friends")
      VCR::Errors::UnhandledHTTPRequestError:


        ================================================================================
        An HTTP request has been made that VCR does not know how to handle:
          POST https://graph.facebook.com/962682103764838/accounts/test-users

        VCR is currently using the following cassette:
          - /Users/adamprice/Code/_CodeDownloads/fieldthebern-api/spec/vcr/requests/api/tokens/facebook_user_not_found.yml
          - :record => :once
          - :match_requests_on => [:method, :uri]

        Under the current configuration VCR can not find a suitable HTTP interaction
        to replay and is prevented from recording new requests. There are a few ways
        you can deal with this:

          * If you're surprised VCR is raising this error
            and want insight about how VCR attempted to handle the request,
            you can use the debug_logger configuration option to log more details [1].
          * You can use the :new_episodes record mode to allow VCR to
            record this new request to the existing cassette [2].
          * If you want VCR to ignore this request (and others like it), you can
            set an `ignore_request` callback [3].
          * The current record mode (:once) does not allow new requests to be recorded
            to a previously recorded cassette. You can delete the cassette file and re-run
            your tests to allow the cassette to be recorded with this request [4].
          * The cassette contains 5 HTTP interactions that have not been
            played back. If your request is non-deterministic, you may need to
            change your :match_requests_on cassette option to be more lenient
            or use a custom request matcher to allow it to match [5].

        [1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
        [2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
        [3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
        [4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
        [5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
        ================================================================================
      # ./spec/requests/api/tokens_spec.rb:87:in `block (4 levels) in <top (required)>'

Finished in 9.36 seconds (files took 2.44 seconds to load)
510 examples, 17 failures

Failed examples:

rspec ./spec/workers/add_facebook_profile_picture_spec.rb:12 # AddFacebookProfilePicture adds a profile picture from facebook
rspec ./spec/requests/api/users_spec.rb:34 # Users API POST /users with Facebook when the user does not already exist creates a valid user without a photo image
rspec ./spec/requests/api/users_spec.rb:266 # Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'friends' leaderboard
rspec ./spec/requests/api/users_spec.rb:246 # Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'everyone' leaderboard
rspec ./spec/requests/api/users_spec.rb:256 # Users API POST /users with Facebook automatic leaderboard update created without a photo should update the 'state' leaderboard
rspec ./spec/requests/api/users_spec.rb:192 # Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'everyone' leaderboard
rspec ./spec/requests/api/users_spec.rb:202 # Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'state' leaderboard
rspec ./spec/requests/api/users_spec.rb:212 # Users API POST /users with Facebook automatic leaderboard update created with a photo should update the 'friends' leaderboard
rspec ./spec/requests/api/users_spec.rb:119 # Users API POST /users with Facebook when the user already exists updates the user without a photo image
rspec ./spec/requests/api/users_spec.rb:85 # Users API POST /users with Facebook when the user already exists updates the user with a user uploaded image
rspec ./spec/requests/api/users_spec.rb:511 # Users API POST /users/me can update a photo
rspec ./spec/models/user_spec.rb:60 # User paperclip with cloudfront should have cloudfront in the URL
rspec ./spec/workers/add_facebook_friends_worker_spec.rb:15 # AddFacebookFriendsWorker adds friends from facebook
rspec ./spec/requests/api/tokens_spec.rb:163 # Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's no user with that facebook_id in the database fails with a 404
rspec ./spec/requests/api/tokens_spec.rb:138 # Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's a user with facebook_id in the database updates leaderboards
rspec ./spec/requests/api/tokens_spec.rb:126 # Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user does exist and there's a user with facebook_id in the database returns a token
rspec ./spec/requests/api/tokens_spec.rb:96 # Tokens API POST /oauth/tokens with a facebook_auth_code when facebook user doesn't exist fails with 400

Randomized with seed 22325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant