rubyatscale / danger-packwerk

Danger plugin for packwerk
MIT License
22 stars 5 forks source link

Improve test suite 2 #4

Closed alexevanczuk closed 2 years ago

alexevanczuk commented 2 years ago

Summary

This is the first of two PRs to clean up the test suite.

This PR does the following: 1) It takes common test setup that is an implementation detail (and thus distracts from the behavior of the test) into a common helper 2) It cleans up some let blocks 3) It removes an unnecessary, redundant context 4) It adds some test cases for edge cases that are not covered whose behavior might change when I open a PR for https://github.com/BigRails/danger-packwerk/issues/2

The next PR will: 1) Improve it block descriptions to be more clear about what the expected outcome is 2) It will create a custom matcher have_inline_markdown that encapsulates some common test details, such as:

Commits