mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
rubocop 0.51.0
This commit is contained in:
parent
f533104b61
commit
ce5e8cd7c1
3 changed files with 4 additions and 5 deletions
|
@ -39,8 +39,8 @@ has been destroyed.
|
|||
s.add_development_dependency "rack-test", "~> 0.6.3"
|
||||
s.add_development_dependency "rake", "~> 12.1"
|
||||
s.add_development_dependency "rspec-rails", "~> 3.7.1"
|
||||
s.add_development_dependency "rubocop", "0.50.0"
|
||||
s.add_development_dependency "rubocop-rspec", "~> 1.18.0"
|
||||
s.add_development_dependency "rubocop", "0.51.0"
|
||||
s.add_development_dependency "rubocop-rspec", "~> 1.19.0"
|
||||
s.add_development_dependency "sqlite3", "~> 1.3"
|
||||
s.add_development_dependency "timecop", "~> 0.9.1"
|
||||
end
|
||||
|
|
|
@ -215,7 +215,7 @@ RSpec.describe(::PaperTrail, versioning: true) do
|
|||
|
||||
context "a record's papertrail" do
|
||||
before do
|
||||
@date_time = DateTime.now.utc
|
||||
@date_time = Time.now
|
||||
@time = Time.now
|
||||
@date = Date.new(2009, 5, 29)
|
||||
@widget = Widget.create(
|
||||
|
|
|
@ -18,8 +18,7 @@ module PaperTrail
|
|||
end
|
||||
|
||||
it "deletes oldest versions, when the database returns them in a different order" do
|
||||
epoch = DateTime.new(2017, 1, 1)
|
||||
|
||||
epoch = Date.new(2017, 1, 1)
|
||||
widget = Timecop.freeze(epoch) { Widget.create }
|
||||
|
||||
# Sometimes a database will returns records in a different order than
|
||||
|
|
Loading…
Reference in a new issue