# Unable to run plugin spec

**URL:** https://meta.discourse.org/t/unable-to-run-plugin-spec/58413
**Category:** Development
**Created:** [March 5, 2017, 1:07pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413 "2017-03-05T13:07:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [March 5, 2017, 1:07pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413/1 "2017-03-05T13:07:44Z")

</div>

> [@How do I run only discourse/plugins/poll/spec?](https://meta.discourse.org/t/how-do-i-run-only-discourse-plugins-poll-spec/47244/6):
>
> bundle exec rake plugin:spec[“poll”]

In my development environment I am unable to run `plugin:spec`. It returning the below error

```plaintext
/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval': PG::UndefinedTable: ERROR: relation "user_auth_tokens" does not exist (ActiveRecord::StatementInvalid)
LINE 5: WHERE a.attrelid = '"user_auth_tokens"'::regc...
                                          ^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"user_auth_tokens"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum

```

I also tried to run individual `plugin:spec` command. I already done db migration too.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 5, 2017, 1:20pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413/2 "2017-03-05T13:20:16Z")

</div>

Did you migrate on test?

```
RAILS_ENV=test bundle exec rake DB:migrate

```

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [March 5, 2017, 1:23pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413/3 "2017-03-05T13:23:20Z")

</div>

No. I missed it.

Thank you. Now it is working 👍.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 5, 2017, 2:36pm UTC](https://meta.discourse.org/t/unable-to-run-plugin-spec/58413/4 "2017-03-05T14:36:00Z")

</div>


