Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Oct 1, 2024
1 parent 4cae1cc commit c77a571
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/datadog/di/code_tracker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
expect(path).to start_with("/")
end

context 'eval without location' do
context "eval without location" do
it "does not track eval'd code" do
# The expectations appear to be lazy-loaded, therefore
# we need to invoke the same expectation before starting
Expand All @@ -66,13 +66,13 @@
tracker.start
# Should still be empty here.
expect(tracker.send(:registry)).to be_empty
eval '1 + 2'# standard:disable Style/EvalWithLocation
eval "1 + 2" # standard:disable Style/EvalWithLocation
# Should still be empty here.
expect(tracker.send(:registry)).to be_empty
end
end

context 'eval with location' do
context "eval with location" do
it "does not track eval'd code" do
# The expectations appear to be lazy-loaded, therefore
# we need to invoke the same expectation before starting
Expand All @@ -81,7 +81,7 @@
tracker.start
# Should still be empty here.
expect(tracker.send(:registry)).to be_empty
eval '1 + 2', nil, __FILE__, __LINE__
eval "1 + 2", nil, __FILE__, __LINE__
# Should still be empty here.
expect(tracker.send(:registry)).to be_empty
end
Expand Down

0 comments on commit c77a571

Please sign in to comment.