Closed rawburt closed 8 years ago
In response to the CI error: you might need to update the CI commands to run env RAILS_ENV=test bundle exec rake db:migrate
, or some equivalent, before running the tests...maybe 😄
Hi rawburt,
Thanks for sending this over! Hopefully I'll have time to look at the build failure over the weekend. If you're keen to get this merged earlier, you can have a go yourself! Everything is run through travis (configured via .travis.yml at the top level),.
Regards, Imran
@ishakir Awesome, I'll poke around a bit, then!
Cool, I think I fixed it all up :shipit:
Using
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
...When running the tests there would be many
Undefined method 'year' for nil:NilClass
errors. This error came from the code inWithGameWeek.start_of_first_gameweek
specifically the lineTime.zone.parse(Settings.first_gameweek_start)
. Exploring the internet it seemed to be a bug with Rails. Updating to the latest 4.1.x version of Rails resolved the issue.