Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate error_test to RSpec #1456

Merged
merged 1 commit into from
Apr 12, 2021
Merged

Migrate error_test to RSpec #1456

merged 1 commit into from
Apr 12, 2021

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Apr 8, 2021

I'm planning on making changes to error.rb, but its tests are in in minitest.

@marcotc marcotc added the dev/testing Involves testing processes (e.g. RSpec) label Apr 8, 2021
@marcotc marcotc requested a review from a team April 8, 2021 22:50
@marcotc marcotc self-assigned this Apr 8, 2021
Comment on lines +57 to +59
# RSpec 'double' hijacks the #class method, thus not allowing us
# to organically test the `Error#type` inferred for this object.
clazz = stub_const('Test::CustomMessage', Struct.new(:message))
Copy link
Member

Choose a reason for hiding this comment

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

Minor: You can always define a regular class somewhere :)

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Thank you for your ongoing work of cleaning these up :)

@marcotc marcotc merged commit 40c16d3 into master Apr 12, 2021
@marcotc marcotc deleted the error.rb branch April 12, 2021 18:34
@github-actions github-actions bot added this to the 0.48.0 milestone Apr 12, 2021
@delner delner added this to Released in Active work Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/testing Involves testing processes (e.g. RSpec)
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

2 participants