# How do I run only discourse/plugins/poll/spec?

**URL:** <https://meta.discourse.org/t/how-do-i-run-only-discourse-plugins-poll-spec/47244>\
**Category:** Development\
**Created:** [13.Июль.2016 19:35:38 UTC](https://meta.discourse.org/t/how-do-i-run-only-discourse-plugins-poll-spec/47244 "2016-07-13T19:35:38Z")\
**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:** [03.Май.2019 03:53:39 UTC](https://meta.discourse.org/t/how-do-i-run-only-discourse-plugins-poll-spec/47244/10 "2019-05-03T03:53:39Z")

</div>

The best way to do this is use autospec, it now works properly even with symlinked plugins

```plaintext
bin/rake autospec

```

Save `plugin.rb` file or plugin spec file and it will run.

Be sure to run all plugin migrations with (which will happen magically if you run)

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

```

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-run-only-discourse-plugins-poll-spec/47244)._
