An example of API consumption, abstraction, encapsulation, testing, and mocking/stubbing.
From the command line:
- Clone this repo
- Run
gem install faraday
- Run
gem install pry
- Run
gem install rspec
To run the tests, run rspec
from the root directory of this repo.
Run the code with ruby runner.rb
from the root directory of this repo. Change the GitHub username in runner.rb
to see a report for a different GitHub user.