aboutsummaryrefslogtreecommitdiffstats
path: root/test/support/fake_record.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/fake_record.rb')
-rw-r--r--test/support/fake_record.rb6
1 files changed, 4 insertions, 2 deletions
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