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 13, 2021
1 parent 99fe72a commit de53793
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 @@ -1640,7 +1640,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 @@ -1654,7 +1654,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 @@ -1668,7 +1668,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 de53793

Please sign in to comment.