Commit 99cc11ea by Turadg Aleahmad

fix spec for composite_primary_keys #105

parent 8bd159c7
...@@ -75,7 +75,8 @@ EOS ...@@ -75,7 +75,8 @@ EOS
it "should get schema info even if the primary key is array, if using composite_primary_keys" do it "should get schema info even if the primary key is array, if using composite_primary_keys" do
klass = mock_class(:users, nil, [ klass = mock_class(:users, nil, [
[mock_column(:a_id, :integer), mock_column(:b_id, :integer)], mock_column(:a_id, :integer),
mock_column(:b_id, :integer),
mock_column(:name, :string, :limit => 50) mock_column(:name, :string, :limit => 50)
]) ])
...@@ -84,8 +85,8 @@ EOS ...@@ -84,8 +85,8 @@ EOS
# #
# Table name: users # Table name: users
# #
# a_id :integer not null # a_id :integer not null
# b_id :integer not null # b_id :integer not null
# name :string(50) not null # name :string(50) not null
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment