RSpec Rails be_a_new matcher
Passes if the object is a Widget and returns true for new_record?:
object.should be_a_new(Widget)
Passes if the object is a Widget and returns true for new_record?:
object.should be_a_new(Widget)
Since heroku rake db:migrate:reset doesn’t work you should run:
heroku pg:reset SHARED_DATABASE --confirm <APP_NAME>
heroku rake db:migrate