tests: fix tests.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<% 0.upto(@relation.maximum(:id) / @limit) do |page| %>
|
||||
<% lo = page * @limit %>
|
||||
<% hi = (page + 1) * @limit %>
|
||||
<% lastmod = @relation.where(id: lo..hi).maximum(:updated_at).iso8601 %>
|
||||
<% lastmod = @relation.where(id: lo..hi).maximum(:updated_at)&.iso8601 %>
|
||||
<% if @sitemap == "posts" %>
|
||||
<% loc = posts_url(limit: @limit, format: :sitemap, tags: "id:#{lo}..#{hi}") %>
|
||||
<% else %>
|
||||
|
||||
@@ -129,6 +129,7 @@ module PostSets
|
||||
|
||||
context "that has a matching artist" do
|
||||
setup do
|
||||
Tag.find_by(name: "a").update!(category: Tag.categories.artist)
|
||||
@artist = FactoryBot.create(:artist, :name => "a")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user