Open TomNaessens opened 9 years ago
I propose adding VCR which is the standard way to deal with this in Ruby projects.
Are these tests not stubbed? They act on sample JSONS which are stored in the repository.
You are right. This is probably due to the commiter resolving.
With the issues with travis, environment variables and Github tokens, I am not sure if it is OK to interact with an external entity in our tests. See for example https://travis-ci.org/ZeusWPI/gamification/builds/78897689, where https://github.com/ZeusWPI/gamification/blob/master/spec/requests/webhooks_spec.rb#L24 and https://github.com/ZeusWPI/gamification/blob/master/spec/requests/webhooks_spec.rb#L28 fail.
Shouldn't this get stubbed to avoid so we aren't depended on external entities and our internet connection?