# RSpec tests won't pass on discourse\_dev docker image

**URL:** https://meta.discourse.org/t/rspec-tests-wont-pass-on-discourse-dev-docker-image/59515
**Category:** Development
**Created:** [March 20, 2017, 3:42am UTC](https://meta.discourse.org/t/rspec-tests-wont-pass-on-discourse-dev-docker-image/59515 "2017-03-20T03:42:01Z")
**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 20, 2017, 12:17pm UTC](https://meta.discourse.org/t/rspec-tests-wont-pass-on-discourse-dev-docker-image/59515/4 "2017-03-20T12:17:40Z")

</div>

Ok, I got it working by doing

```plaintext
git clone -b tests-passed https://github.com/discourse/discourse discourse
cd discourse
./bin/docker/boot_dev
./bin/docker/bundle install --retry=3 --jobs=3
./bin/docker/psql "-c 'ALTER USER discourse WITH SUPERUSER;'"
RAILS_ENV=test ./bin/docker/rake db:drop db:create db:migrate
./bin/docker/bundle exec rspec

```

Had to change the database permissions for the user ‘discourse’ because otherwise `db:drop` wouldn’t work.

So from that, I guess there is some kind of stale database setup in the docker image. Would it be possible to get that updated? Or maybe assign enough privileges to the postgres ‘discourse’ user to allow for dropping/creating tables in the discourse\_dev image?

---

_[View the full topic](https://meta.discourse.org/t/rspec-tests-wont-pass-on-discourse-dev-docker-image/59515)._
