aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-03-04 22:59:40 +0100
committerPiotr Sarnacki <drogus@gmail.com>2012-03-04 22:59:40 +0100
commitc8f6025fd37c7b5c8922b11eb5ceba22e4650b59 (patch)
treef5c516d7f022f2d48f4c389c5e97256b9ecf2515 /railties
parent393c2ddfdb3dcc28b435d75f3979d5af8997ec74 (diff)
downloadrails-c8f6025fd37c7b5c8922b11eb5ceba22e4650b59.tar.gz
rails-c8f6025fd37c7b5c8922b11eb5ceba22e4650b59.tar.bz2
rails-c8f6025fd37c7b5c8922b11eb5ceba22e4650b59.zip
Fix tests, table_name= needs connection now, so just stub table_name
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/session_migration_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/session_migration_generator_test.rb b/railties/test/generators/session_migration_generator_test.rb
index b590047ff0..89506222df 100644
--- a/railties/test/generators/session_migration_generator_test.rb
+++ b/railties/test/generators/session_migration_generator_test.rb
@@ -15,7 +15,7 @@ class SessionMigrationGeneratorTest < Rails::Generators::TestCase
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)