I just realized you couldn't have won my badge if you did beat me.
You only used one rock pokemon.
It would have been considered a friendly.
If you want to challenge other gyms you have to use 3 of your gym type.
I honestly thought that only applied to defending your gym, there are a few badges I should take back then from memory