There is a basic set of API tests developed using RSpec and httparty technologies.
4 API endpoints about GitHub Pull Request functionality are covered here:
- GET /repos/:owner/:repo/pulls
- GET /repos/:owner/:repo/pulls/:number
- POST /repos/:owner/:repo/pulls
- PATCH /repos/:owner/:repo/pulls/:number
To validate chosen functionality I manage test account KorvinBoxText with associated techlab project. Login, pero and token (which is stored as a array of byte-chars) could be found in credentials.yml file.
To prepare specs for running, download this repo and install gems locally:
- bundle install Run test by command:
- bundle exec rspec And see result in a console.
Travis CI runs builds after each commits. See settings in .travis.yml