Skip to content

Commit

Permalink
Fix deprecation warning in ActiveRecord tests for using set_table_name
Browse files Browse the repository at this point in the history
  • Loading branch information
obrie committed Jan 2, 2012
1 parent 6de4472 commit 50d56bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/integrations/active_record_test.rb
Expand Up @@ -34,7 +34,7 @@ def new_model(create_table = :foo, &block)

model = Class.new(ActiveRecord::Base) do
connection.create_table(table_name, :force => true) {|t| t.string(:state)} if create_table
set_table_name(table_name.to_s)
self.table_name = table_name.to_s

(class << self; self; end).class_eval do
define_method(:name) { "ActiveRecordTest::#{table_name.to_s.capitalize}" }
Expand Down

0 comments on commit 50d56bb

Please sign in to comment.