mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix broken sqlite3_mem tests
I put this test in the wrong place and it broke the sqlite3_mem tests. This test shouldn't run on sqlite3_mem.
This commit is contained in:
parent
9c8a7f4308
commit
3c99817394
1 changed files with 4 additions and 4 deletions
|
@ -218,11 +218,11 @@ class BasePreventWritesTest < ActiveRecord::TestCase
|
||||||
|
|
||||||
assert_match %r/\AWrite query attempted while in readonly mode: INSERT /, conn2_error.message
|
assert_match %r/\AWrite query attempted while in readonly mode: INSERT /, conn2_error.message
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
test "current_preventing_writes" do
|
test "current_preventing_writes" do
|
||||||
ActiveRecord::Base.connection_handler.while_preventing_writes do
|
ActiveRecord::Base.connection_handler.while_preventing_writes do
|
||||||
assert ActiveRecord::Base.current_preventing_writes, "expected connection current_preventing_writes to return true"
|
assert ActiveRecord::Base.current_preventing_writes, "expected connection current_preventing_writes to return true"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue