Question about doing the Learn exercises

I’m tackling null-object-part-two. Should I be able to complete the exercise without modifying the specs? Or is the intention to modify the specs to suit the refactoring?


Also, I pushed an exercise, and then made some small amendments, but it seems I’m not allowed to force push it? (I haven’t yet clicked the Submit Solution button).

Hi @andyw8, for the Tell Don’t Ask exercise, the specs had to change to reflect the refactoring. I think you should change the specs if you think it makes sense. The person who reviews your code would flag issues with your specs anyway.

That’s odd that you can’t force push. Can you paste the error you get when you try?

Here’s the error:

$ push -f
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 607 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: FATAL: + refs/heads/master andyw8/null-object-part-two andyw8 DENIED by fallthru
remote: error: hook declined to update refs/heads/master
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to ''