← Back to Upcase

Question about doing the Learn exercises


(Andy Waite) #1

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?

Andy


(Andy Waite) #2

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).


(Aaron Mc Adam) #3

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.


(Ben Orenstein) #4

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


(Andy Waite) #5

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
To git@git.thoughtbot.com:andyw8/null-object-part-two.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@git.thoughtbot.com:andyw8/null-object-part-two.git'