提交 9560050d 编写于 作者: J Justin Collins

Add test for Rails version change rescan

上级 b5a7c2fa
......@@ -237,4 +237,19 @@ class RescannerTests < Test::Unit::TestCase
assert_new 0
assert_fixed 1
end
def test_gemfile_rails_version_change
gemfile = "Gemfile.lock"
before_rescan_of gemfile do
replace gemfile, "rails (3.2.8)", "rails (3.2.6)"
end
#@original is actually modified
assert @original.config[:rails_version], "3.2.6"
assert_reindex :none
assert_changes
assert_new 1
assert_fixed 0
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册