From 5496b1788ea95bf3455ab71dad0c79cb06ba9416 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 c6b6014e9a..4d234164a3 100644 --- a/spec/models/alchemy/page_spec.rb +++ b/spec/models/alchemy/page_spec.rb @@ -1723,7 +1723,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 @@ -1737,7 +1737,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 @@ -1751,7 +1751,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