Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Add placeholder for code_or_symbol to NullColorizer#1637

Merged
JonRowe merged 1 commit into
rspec:masterfrom
tomykaira:fix_wrap_args
Jul 19, 2014
Merged

Add placeholder for code_or_symbol to NullColorizer#1637
JonRowe merged 1 commit into
rspec:masterfrom
tomykaira:fix_wrap_args

Conversation

@tomykaira
Copy link
Copy Markdown
Contributor

The signature of NullColorizer#wrap was different from ConsoleCodes#wrap, therefore #message_lines raised error.

@JonRowe
Copy link
Copy Markdown
Member

JonRowe commented Jul 16, 2014

Oops, can you add a spec for this please.

@tomykaira
Copy link
Copy Markdown
Contributor Author

Sure.

I'm not accustomed to RSpec-core's test habit.
Point out problems if any.

Comment thread lib/rspec/core/notifications.rb Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer if ignored was called _code_or_symbol. The _ is a hint to ruby that it's an ignored variable, and giving it a name related to the wrap signature it is aligning with helps make it clearer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Thank you for good advice.
0f21818

@JonRowe
Copy link
Copy Markdown
Member

JonRowe commented Jul 17, 2014

One last fix and then if you could squash these commits this will be good to go IMO.

@tomykaira
Copy link
Copy Markdown
Contributor Author

All done.
@JonRowe , thank you very much for sincere support!

@JonRowe
Copy link
Copy Markdown
Member

JonRowe commented Jul 19, 2014

Thanks @tomykaira

JonRowe added a commit that referenced this pull request Jul 19, 2014
Add placeholder for code_or_symbol to NullColorizer
@JonRowe JonRowe merged commit 0132748 into rspec:master Jul 19, 2014
JonRowe added a commit that referenced this pull request Jul 19, 2014
JonRowe added a commit that referenced this pull request Jul 19, 2014
Add placeholder for code_or_symbol to NullColorizer
JonRowe added a commit that referenced this pull request Jul 19, 2014
@JonRowe
Copy link
Copy Markdown
Member

JonRowe commented Jul 19, 2014

Cherry-picked to 3-0-maintenance

MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Add placeholder for code_or_symbol to NullColorizer
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…ap_args

Add placeholder for code_or_symbol to NullColorizer

---
This commit was imported from rspec/rspec-core@ba9da85.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants