Skip to content

Commit

Permalink
Fix flip flopping tests with regards to time stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
murny committed Jan 31, 2018
1 parent 9d48c58 commit 0a75315
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ GEM
mustermann (1.0.1)
mysql2 (0.4.10)
nio4r (2.1.0)
nokogiri (1.8.1)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
om (3.1.1)
activemodel
Expand Down
5 changes: 1 addition & 4 deletions app/views/profile/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<% page_title(@user.name) %>

<div class="mb-3">
<h1><%= @user.name %></h1>
</div>
<h1 class="mb-3"><%= @user.name %></h1>

<dl class="row">
<dt class="col-sm-3"><%= t('admin.users.created') %></dt>
Expand All @@ -14,7 +12,6 @@
<dd class="col-sm-9">
<%= @user.email %>
</dd>

</dl>

<%= render partial: 'user_items',
Expand Down
2 changes: 1 addition & 1 deletion app/views/sitemap/collections.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cache 'sitemap', expires_in: 24.hours do
@collections.each do |collection|
xml.url do
xml.loc community_collection_url(collection.community, collection)
xml.lastmod collection.updated_at
xml.lastmod collection.updated_at.utc.iso8601
xml.changefreq 'weekly'
xml.priority 1
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/sitemap/communities.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cache 'sitemap', expires_in: 24.hours do
@communities.each do |community|
xml.url do
xml.loc community_url(community)
xml.lastmod community.updated_at
xml.lastmod community.updated_at.utc.iso8601
xml.changefreq 'weekly'
xml.priority 1
end
Expand Down
4 changes: 2 additions & 2 deletions test/integration/sitemap_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def before_all
end

assert_select 'loc', community_collection_url(@collection.community, @collection)
assert_select 'lastmod', @collection.updated_at.to_s
assert_select 'lastmod', @collection.updated_at.utc.iso8601
end
end

Expand All @@ -141,7 +141,7 @@ def before_all
end

assert_select 'loc', community_url(@community)
assert_select 'lastmod', @community.updated_at.to_s
assert_select 'lastmod', @community.updated_at.utc.iso8601
end
end

Expand Down

0 comments on commit 0a75315

Please sign in to comment.