From e9033e3b8e05533cfe86fcc16a14f1359e8c8e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bo=CC=88ning?= Date: Sat, 13 Mar 2021 11:52:44 +0100 Subject: [PATCH] Fix page specs failing with Rails 6.1 --- spec/models/alchemy/page_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/alchemy/page_spec.rb b/spec/models/alchemy/page_spec.rb index d3b1cdadb0..9c0a03d8bb 100644 --- a/spec/models/alchemy/page_spec.rb +++ b/spec/models/alchemy/page_spec.rb @@ -1687,7 +1687,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 @@ -1701,7 +1701,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 @@ -1715,7 +1715,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