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 Aug 9, 2021
1 parent 1b2b010 commit 3aaa1ab
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

1 comment on commit 3aaa1ab

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented on 3aaa1ab Aug 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain in the commit message why this fixes the specs?

Please sign in to comment.