# Не удалось запустить тесты rspec для плагинов

**URL:** https://meta.discourse.org/t/unable-to-run-rspec-tests-for-plugins/389439
**Category:** Development
**Created:** [24.Ноябрь.2025 07:04:20 UTC](https://meta.discourse.org/t/unable-to-run-rspec-tests-for-plugins/389439 "2025-11-24T07:04:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [24.Ноябрь.2025 11:36:21 UTC](https://meta.discourse.org/t/unable-to-run-rspec-tests-for-plugins/389439/2 "2025-11-24T11:36:21Z")

</div>

Похоже, что ваша тестовая база данных не загружает миграции плагинов. Попробуйте выполнить:

```plaintext
RAILS_ENV=test LOAD_PLUGINS=1 bin/rails db:migrate

```

Это гарантирует применение миграций плагинов к тестовой базе данных. Данная проблема соответствует обсуждению здесь:

> [@Undeclared attribute type for enum 'chat\_send\_shortcut' in UserOption](https://meta.discourse.org/t/undeclared-attribute-type-for-enum-chat-send-shortcut-in-useroption/352308/2):
>
> I ran into this same issue adding a new enum. Turns out I had to explicitly run the plugin migrations for the test environment: RAILS\_ENV=test LOAD\_PLUGINS=1 bin/rails db:migrate

---

_[View the full topic](https://meta.discourse.org/t/unable-to-run-rspec-tests-for-plugins/389439)._
