Skip to content

EricBelongea/sweater_weather

Repository files navigation

README

Setup

Fork and Clone this Repo

Once on your local, bundle install.

In your terminal:

  • Run bundle exec rspec to make sure all of your tests are passing.
  • rails db:{drop,create,seed,migrate}

Testing

  • bundle exec rspec will run all of the tests at once
  • If you want to run only a specific file use the following syntax: bundle exec rspec spec/facades/geolocation_facade_spec.rb
    • Add :11 to the end of the previous line if you only want to run the test starting on line 11.
  • If you are creating new requests to your local host delete the older vcr_cassettes to have more accurate responses. spec/fixtures/vcr_cassettes right click and delete vcr_cassettes.
  • For the SimpleCov coverage report in the terminal run open coverage/index.html

APIs

WeatherAPI MapQuest Yelp Developer API


Gems and testing


Postman Suite Alt text

The entire Postman suite is linked Here. Follow along to test the returns from the external APIs and the reponses that you are getting from your localhost API calls.


Learning Goals

  • Expose an API that aggregates data from multiple external APIs
  • Expose an API that requires an authentication token
  • Expose an API for CRUD functionality
  • Determine completion criteria based on the needs of other developers
  • Test both API consumption and exposure, making use of at least one mocking tool (VCR, Webmock, etc).
  • Implementing the pillars of OOP.
  • Creating a Postman suite boasting Happy and Sad path testing.
  • Thorough testing of Controllers, Facades, Services, Serializers, and exposed API endpoints.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages