Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix page specs failing with Rails 6.1
Browse files Browse the repository at this point in the history
robinboening committed Jul 9, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2f7b264 commit 0af4cef
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
@@ -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

0 comments on commit 0af4cef

Please sign in to comment.