Specs: Check for response to :truncate_table instead of string

This commit is contained in:
Jan Vlnas 2012-12-04 04:43:14 +01:00
parent f7e834d5e9
commit a309df22c8

View file

@ -8,7 +8,7 @@ module ActiveRecord
[MysqlAdapter, Mysql2Adapter, SQLite3Adapter, JdbcAdapter, PostgreSQLAdapter, IBM_DBAdapter].each do |adapter|
describe adapter, "#truncate_table" do
it "responds" do
adapter.instance_methods.should include('truncate_table')
adapter.instance_methods.should include(:truncate_table)
end
end
end