diff --git a/spec/database_cleaner/active_record/truncation_spec.rb b/spec/database_cleaner/active_record/truncation_spec.rb index 24de95f..2ff665f 100644 --- a/spec/database_cleaner/active_record/truncation_spec.rb +++ b/spec/database_cleaner/active_record/truncation_spec.rb @@ -40,7 +40,7 @@ module DatabaseCleaner Truncation.new.clean end - it "should use ActiveRecord's schema_migrations_table_name" do + it "should use ActiveRecord's SchemaMigration.table_name" do connection.stub(:database_cleaner_table_cache).and_return(%w[pre_schema_migrations_suf widgets dogs]) ::ActiveRecord::Base.stub(:table_name_prefix).and_return('pre_') ::ActiveRecord::Base.stub(:table_name_suffix).and_return('_suf')