# Plugin tests mislukken met "undefined method \`test\_transaction='"

**URL:** <https://meta.discourse.org/t/plugin-tests-fail-with-undefined-method-test-transaction/176292>\
**Category:** Development\
**Created:** [16 januari 2021 om 16:25 UTC](https://meta.discourse.org/t/plugin-tests-fail-with-undefined-method-test-transaction/176292 "2021-01-16T16:25:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)\
**Post date:** [22 januari 2021 om 13:19 UTC](https://meta.discourse.org/t/plugin-tests-fail-with-undefined-method-test-transaction/176292/4 "2021-01-22T13:19:52Z")

</div>

I’m running the following command from the `discourse` directory:

```plaintext
d/rake plugin:spec['discourse-ruby']

```

@riking I’m not explicitly including `LOAD_PLUGINS=1`, but that seems to happen anyway (I assume since I’m doing `plugin:spec`). The first line after executing the command is:

```plaintext
LOAD_PLUGINS=1 /usr/local/bin/ruby -S rspec ./plugins/discourse-ruby/spec/markdown_ruby_spec.rb --profile

```

If I include it explicitly as in the following, I get the same error:

```plaintext
d/rake plugin:spec['discourse-ruby'] LOAD_PLUGINS=1

```

---

_[View the full topic](https://meta.discourse.org/t/plugin-tests-fail-with-undefined-method-test-transaction/176292)._
