Skip to content

Commit

Permalink
Fix page specs failing with Rails 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robinboening committed Apr 19, 2021
1 parent 5e0c4d2 commit 8da0726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/alchemy/page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ class AnotherUrlPathClass; end
end

it "uses the primary key defined on user class" do
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { :id }
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { "id" }
subject
end
end
Expand All @@ -1702,7 +1702,7 @@ class AnotherUrlPathClass; end
end

it "uses the primary key defined on user class" do
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { :id }
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { "id" }
subject
end
end
Expand All @@ -1716,7 +1716,7 @@ class AnotherUrlPathClass; end
end

it "uses the primary key defined on user class" do
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { :id }
expect(Alchemy.user_class).to receive(:primary_key).at_least(:once) { "id" }
subject
end
end
Expand Down

0 comments on commit 8da0726

Please sign in to comment.