提交 445696c0 编写于 作者: Y yui-knk

Drop a temporary table before end of a test case

上级 1663bab3
......@@ -3,7 +3,7 @@
require "active_record"
class JsonParamsParsingTest < ActionDispatch::IntegrationTest
test "prevent null query" do
def test_prevent_null_query
# Make sure we have data to find
klass = Class.new(ActiveRecord::Base) do
def self.name; 'Foo'; end
......@@ -32,6 +32,8 @@ def self.name; 'Foo'; end
[[[nil]], [[[nil]]]].each do |data|
assert_nil app.call(make_env({ 't' => data }))
end
ensure
klass.connection.drop_table("foos")
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册