-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't need to call processor.render in every test, as it's always called with the same arguments. That means it can be pulled out into a `let` block. Moving the code block tests into the top level describe lets us use described_class in the tests, which cuts down on a bit of syntax noise. We can get a bit clever by only replacing `processor` and not `output` in the "with syntax highlighting" case - the test will use the `output` block from `describe "#render a code block"`, but with the `processor` from `describe "with syntax highlighting"`
- Loading branch information
1 parent
3271053
commit 8efa6f9
Showing
1 changed file
with
52 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters