# Can't run plugin:spec, SeedFu error

**URL:** https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584
**Category:** Development
**Created:** [January 26, 2019, 2:31am UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584 "2019-01-26T02:31:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kampfkarren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kampfkarren/32/109627_2.png) [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)
#### Post date: [January 26, 2019, 2:31am UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584/1 "2019-01-26T02:31:50Z")

</div>

I used to be able to test my plugins, but after updating Discourse, I get this error on any attempt to `bundle exec rake plugin:spec["PLUGIN_NAME"]` when the test has `require "rails_helper"`

```plaintext
Failure/Error: SeedFu.seed

NoMethodError:
  undefined method `text_size_key' for #<UserOption:0x00007f6baa690c18>
  Did you mean? text_size
                 text_size=
# (eval):52:in `block (2 levels) in run_file'
# ./spec/rails_helper.rb:65:in `<top (required)>'
No examples found.

```

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [January 26, 2019, 2:43am UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584/2 "2019-01-26T02:43:17Z")

</div>

Try running

```plaintext
RAILS_ENV=test rake db:migrate

```

---

<div class="post-metadata">

### Author: ![Kampfkarren](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kampfkarren/32/109627_2.png) [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)
#### Post date: [January 26, 2019, 2:48am UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584/3 "2019-01-26T02:48:30Z")

</div>

This seems to have fixed it. Thanks.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 26, 2019, 3:06am UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584/4 "2019-01-26T03:06:19Z")

</div>

In case it’s not obvious you need to do this every upgrade.

---

<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: [January 26, 2019, 2:39pm UTC](https://meta.discourse.org/t/cant-run-plugin-spec-seedfu-error/107584/5 "2019-01-26T14:39:23Z")

</div>

> <https://github.com/discourse/discourse/blob/main/bin/rake#L3-L8>

Which is why you should always binstubs 🙂

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

```
