From e7cdaedb6bc7d452142b9b8c42942d659efcd11a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 7 Mar 2011 08:35:48 -0800 Subject: cleaning up math operations on attributes --- test/support/fake_record.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb index a0fa79d519..babf5fa25b 100644 --- a/test/support/fake_record.rb +++ b/test/support/fake_record.rb @@ -20,10 +20,12 @@ module FakeRecord ] } @columns_hash = { - 'users' => Hash[@columns['users'].map { |x| [x.name, x] }] + 'users' => Hash[@columns['users'].map { |x| [x.name, x] }], + 'products' => Hash[@columns['products'].map { |x| [x.name, x] }] } @primary_keys = { - 'users' => 'id' + 'users' => 'id', + 'products' => 'id' } end -- cgit v1.2.3