mattbrictson / bundle_update_interactive

A stylish interactive mode for Bundler, inspired by `yarn upgrade-interactive`
MIT License
137 stars 3 forks source link

Use vcr to record changelog lookups for better test coverage #7

Closed mattbrictson closed 2 months ago

mattbrictson commented 2 months ago

Before, we used a FakeChangelogLocator when testing. This meant that the logic for looking up changelogs, which is messy and buggy, wasn't being tested.

This PR installs vcr and webmock gems, and updates the existing Report test to use the real changelog lookup algorithm involving HTTP requests.

The resulting vcr cassettes are checked into Git, so that test runs are fast.