# 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:** 10

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [19 juni 2019 om 00:59 UTC](https://meta.discourse.org/t/what-is-the-library-used-to-make-external-requests/120147/10 "2019-06-19T00:59:58Z")

</div>

> [@emanuele](#):
>
> `bin/rake autospec`

You should not need to add `LOAD_PLUGINS=1` we handle this automatically here:

> <https://github.com/discourse/discourse/blob/03ba1d49fbdceaeec76301b0811daba5dca6cb94/lib/autospec/simple_runner.rb#L38-L41>

All you need to do is save a spec file (or plugin.rb) in your plugin directory.

Maybe somehow your test db is off?

Try creating it from scratch:

```plaintext
RAILS_ENV=test bin/rake db:drop
RAILS_ENV=test bin/rake db:create
RAILS_ENV=test bin/rake db:migrate

```

---

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