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 Mar 23, 2021
1 parent 351bb54 commit e9033e3
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 @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e9033e3

Please sign in to comment.