-
Notifications
You must be signed in to change notification settings - Fork 402
[wip] try to fix test names #5259
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,17 @@ | |
| let(:integration_name) { :example } | ||
| let(:integration) { integration_class.new(integration_name) } | ||
| let(:integration_class) do | ||
| Class.new do | ||
| include Datadog::Tracing::Contrib::Integration | ||
| include Datadog::Tracing::Contrib::Configurable | ||
| end | ||
| stub_const( | ||
| 'TestIntegrationClass', | ||
| Class.new do | ||
| include Datadog::Tracing::Contrib::Integration | ||
| include Datadog::Tracing::Contrib::Configurable | ||
|
|
||
| def inspect | ||
| 'TestIntegrationClass' | ||
| end | ||
|
Comment on lines
+17
to
+19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is one of the ways to remove the standard There's also
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which one you think is the best fit ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can define classes the old-fashioned way: https://github.com/DataDog/dd-trace-rb/blob/master/spec/datadog/di/serializer_spec.rb#L5 But, I don't know what you are attempting to achieve with this PR. |
||
| end | ||
| ) | ||
| end | ||
|
|
||
| let(:configurable_module) do | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a heavy-handed way to have the class's
namemethod returnTestIntegrationClassor something.Is anything even referencing the constant
TestIntegrationClassanywhere?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's only a test to see if it fixes the issue. I'll definitly need your help to arrange this in a way that fit ruby idioms.