Failing tests everywhere on Ruby 2.0

(James Cook) #1

I’m just trying to set up a dev environment on my mac but even after following the beginners guide I can’t get the majority of my tests to pass. The test suite is also taking forever, some tests just pause for ages. I haven’t got to the end yet.

I literally have no idea what I’m missing here, have followed the guide to the letter, have everything installed etc.

What needs to be running locally for tests to pass?

I’m on Yosemite if this would make any difference??

(Arpit Jalan) #2

First try running:

RAILS_ENV=test bundle exec rake db:drop db:create db:migrate

Then run the tests.

(James Cook) #3

The above command doesn’t fix it for me. I’m getting these errors while running autospec. Does it make any sense to you guys?

(Dave McClure) #4

I’m running Ruby 2.1 without errors. I thought 2.0 should work, but maybe it’s worth a try updating?

(James Cook) #5

Thanks @mcwumbly. Didn’t even think of changing my ruby version as was already on Ruby 2.0.This seems to have fixed it.

Working on Ruby 2.1

Should this be added to the original post in Beginners Guide to Install Discourse on Mac OS X for Development @techAPJ?

(Sam Saffron) #6

We work on 2.0, p195 is quite old make sure you are on latest patch level