# What is the library used to make external requests?

**URL:** <https://meta.discourse.org/t/what-is-the-library-used-to-make-external-requests/120147>\
**Category:** Development\
**Created:** [12 juni 2019 om 12:53 UTC](https://meta.discourse.org/t/what-is-the-library-used-to-make-external-requests/120147 "2019-06-12T12:53:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![emanuele](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emanuele/32/142687_2.png) [@emanuele](https://meta.discourse.org/u/emanuele)\
**Post date:** [18 juni 2019 om 17:52 UTC](https://meta.discourse.org/t/what-is-the-library-used-to-make-external-requests/120147/9 "2019-06-18T17:52:36Z")

</div>

(Tagging @sam 😃)

So, I am running `LOAD_PLUGINS=1 bin/rake autospec`, but other specs fail, so my spec file is never picked. Is it normal that the first time it runs it takes more than 10 minutes?

This is the output:

```plaintext
Failures:

  1) UsersController#perform_account_activation valid token welcome message enqueues a welcome message if the user object indicates so
     Failure/Error: expect(Jobs::SendSystemMessage.jobs.size).to eq(1)

       expected: 1
            got: 0

       (compared using ==)
     # ./spec/requests/users_controller_spec.rb:34:in `block (5 levels) in <main>'

  2) User.enqueue_welcome_message enqueues the system message
     Failure/Error: Jobs.expects(:enqueue).with(:send_system_message, user_id: user.id, message_type: 'welcome_user')

     Mocha::ExpectationError:
       not all expectations were satisfied
       unsatisfied expectations:
       - expected exactly once, not yet invoked: Jobs.enqueue(:send_system_message, {:user_id => 3883, :message_type => "welcome_user"})
     # ./spec/models/user_spec.rb:152:in `block (3 levels) in <main>'

```

In total, 8 specs are failing (in addition to mine)…

EDIT: an update. `bin/rake autospec` (without `LOAD_PLUGINS=1`) fails too, with 4 failures instead of 8.

---

_[View the full topic](https://meta.discourse.org/t/what-is-the-library-used-to-make-external-requests/120147)._
