File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -188,19 +188,19 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
188
188
it "destroys model with no associations" do
189
189
connection . lowercase_schema_reflection = true
190
190
191
- discount = Discount . create!
192
- assert_equal 1 , Discount . count
193
- discount . destroy!
194
- assert_equal 0 , Discount . count
191
+ assert_nothing_raised do
192
+ discount = Discount . create!
193
+ discount . destroy!
194
+ end
195
195
end
196
196
197
197
it "destroys model with association" do
198
198
connection . lowercase_schema_reflection = true
199
199
200
- post = Post . create! ( title : 'Setup' , body : 'Record to be deleted' )
201
- assert_equal 1 , Post . count
202
- post . destroy!
203
- assert_equal 0 , Post . count
200
+ assert_nothing_raised do
201
+ post = Post . create! ( title : 'Setup' , body : 'Record to be deleted' )
202
+ post . destroy!
203
+ end
204
204
end
205
205
end
206
206
You can’t perform that action at this time.
0 commit comments