Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jan 30, 2024
1 parent 91238c0 commit 811663b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 6 additions & 2 deletions spec/datadog/tracing/contrib/active_record/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
if ActiveRecord::VERSION::MAJOR < 4
require 'active_record/connection_adapters/mysql2_adapter'

class ActiveRecord::ConnectionAdapters::Mysql2Adapter
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
module ActiveRecord
module ConnectionAdapters
class Mysql2Adapter
NATIVE_DATABASE_TYPES[:primary_key] = 'int(11) auto_increment PRIMARY KEY'
end
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@

before do
if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new('4.2')
skip "ActiveRecord instantiation events were added in Rails 4.2"
skip 'ActiveRecord instantiation events were added in Rails 4.2'
end
end

before do
# Create the article to be retrieved in the tests.
Article.create!(title: 'test')

# Reset options (that might linger from other tests)
Expand Down

0 comments on commit 811663b

Please sign in to comment.