提交 fd30ae71 编写于 作者: O oreoshake

This one was also not bad.

上级 bd3b8d88
......@@ -169,11 +169,7 @@ class HomeController < ApplicationController
redirect_to [User.find(1), User.find(2)]
end
def test_model_attr_badness
redirect_to [User.new.donkey]
end
def test_model_attributes
def test_model_attributes_badness
redirect_to User.new.donkey
end
end
......@@ -12,13 +12,13 @@ class Rails2Tests < Test::Unit::TestCase
:controller => 1,
:model => 2,
:template => 41,
:warning => 33}
:warning => 32}
else
@expected ||= {
:controller => 1,
:model => 2,
:template => 41,
:warning => 34 }
:warning => 33 }
end
end
......@@ -118,13 +118,6 @@ class Rails2Tests < Test::Unit::TestCase
:message => /^Possible unprotected redirect/,
:confidence => 0,
:file => /home_controller\.rb/
assert_warning :type => :warning,
:warning_type => "Redirect",
:line => 177,
:message => /^Possible unprotected redirect/,
:confidence => 0,
:file => /home_controller\.rb/
end
def test_dynamic_render_path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册