提交 c8f6025f 编写于 作者: P Piotr Sarnacki

Fix tests, table_name= needs connection now, so just stub table_name

上级 393c2ddf
......@@ -15,7 +15,7 @@ def test_session_migration_with_given_name
end
def test_session_migration_with_custom_table_name
ActiveRecord::SessionStore::Session.table_name = "custom_table_name"
ActiveRecord::SessionStore::Session.stubs(:table_name => "custom_table_name")
run_generator
assert_migration "db/migrate/add_sessions_table.rb" do |migration|
assert_match(/class AddSessionsTable < ActiveRecord::Migration/, migration)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册