# Failing spec: sign\_in(Fabricate(:user))

**URL:** <https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158>\
**Category:** Development\
**Created:** [March 30, 2020, 4:33pm UTC](https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158 "2020-03-30T16:33:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 30, 2020, 4:47pm UTC](https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158/4 "2020-03-30T16:47:25Z")

</div>

You should get a message when you’re missing migrations

> <https://github.com/discourse/discourse/blob/29b35aa64c6e6c954f80004e58d41da9ef37c529/spec/rails_helper.rb#L180-L184>

But this will only work if you’re using the `rails_helper`. I suspect you need to add `require "rails_helper"` to the top of your spec file. That might resolve the other issues you’re seeing as well.

Edit: hmmm… maybe we should add `--require rails_helper` to the `.rspec` file so that it doesn’t need to be added manually 🤔

---

_[View the full topic](https://meta.discourse.org/t/failing-spec-sign-in-fabricate-user/146158)._
