spec/persistence_spec.rb in modis-4.3.1 vs spec/persistence_spec.rb in modis-4.3.2

- old
+ new

@@ -275,11 +275,11 @@ end.to raise_error(Modis::RecordInvalid) end end describe 'update_attributes!' do - around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } } + around(:each) { |example| ActiveSupport::Deprecation.new.silence { example.run } } it 'updates the given attributes' do model.update_attributes!(name: 'Derp', age: 29) model.reload expect(model.name).to eq 'Derp' @@ -329,10 +329,10 @@ expect(model.update(name: nil)).to be false end end describe 'update_attributes' do - around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } } + around(:each) { |example| ActiveSupport::Deprecation.new.silence { example.run } } it 'updates the given attributes' do model.update_attributes(name: 'Derp', age: 29) model.reload expect(model.name).to eq('Derp')