Skip to content

Commit 99cc11e

Browse files
committed
fix spec for composite_primary_keys #105
1 parent 8bd159c commit 99cc11e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/annotate/annotate_models_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def mock_column(name, type, options={})
7575

7676
it "should get schema info even if the primary key is array, if using composite_primary_keys" do
7777
klass = mock_class(:users, nil, [
78-
[mock_column(:a_id, :integer), mock_column(:b_id, :integer)],
78+
mock_column(:a_id, :integer),
79+
mock_column(:b_id, :integer),
7980
mock_column(:name, :string, :limit => 50)
8081
])
8182

@@ -84,8 +85,8 @@ def mock_column(name, type, options={})
8485
#
8586
# Table name: users
8687
#
87-
# a_id :integer not null
88-
# b_id :integer not null
88+
# a_id :integer not null
89+
# b_id :integer not null
8990
# name :string(50) not null
9091
#
9192

0 commit comments

Comments
 (0)