Tests fail locally (seed problem?)
Created by: PragTob
Hi everyone,
I try running tests the following way:
tobi@big-one ~/github/gitlabhq $ rake db:setup RAILS_ENV=test
gitlabhq_test already exists
(...)
tobi@big-one ~/github/gitlabhq $ rake db:seed_fu RAILS_ENV=test
== Seed from /home/tobi/github/gitlabhq/db/fixtures/test/001_repo.rb
Unpacking seed repository... done.
tobi@big-one ~/github/gitlabhq $ bundle exec rake gitlab:test
(...)
Error summary:
Failures (2)
Project Browse commits :: I browse commit from list :: Then I see commit info
Project Browse commits :: I compare refs :: And I see compared refs
The concrete test failures are:
✘ Then I see commit info # features/steps/project/project_browse_commits.rb:31
expected there to be content "notes controller refactored" in (...)
and
✘ And I see compared refs # features/steps/project/project_browse_commits.rb:42
expected there to be content "Commits (27)" in (...)
To me it looks like the seeds haven't been properly applied... but I've no idea right now how to fix it. Maybe this is some sort of commonly known problem? Help would be greatly appreciated.
Ah yeah, I'm using mysql as the database, with sqlite I had some other weird errors like rollback not possible or something...
Thanks + cheers, Tobi