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 Jun 2, 2021
1 parent 74a41a3 commit e27716a
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 @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e27716a

Please sign in to comment.