Skip to content

test: cover ConsoleCodes.wrap when color is disabled - #331

Open
hammadxcm wants to merge 1 commit into
rspec:mainfrom
hammadxcm:test/console-codes-color-disabled
Open

hammadxcm wants to merge 1 commit into
rspec:mainfrom
hammadxcm:test/console-codes-color-disabled

Conversation

@hammadxcm

Copy link
Copy Markdown
Contributor

ConsoleCodes.wrap returns the text unwrapped when color_enabled? is false, but every existing #wrap example stubs color_enabled? as true, so the no-color branch had no coverage.

This adds a small example asserting that no console codes are applied when color is disabled, matching the existing style of the spec.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant