Permalink
Browse files

Changes in pullreview.yml - part2

  • Loading branch information...
afmelo committed Oct 28, 2015
1 parent 0a771d2 commit 2b98395f56bc5aaaaa388cf466c06818a1994cd3
View
@@ -1,3 +1,5 @@
languages:
-ruby
rules:
ignore:
- avoid_copy_paste
@@ -30,7 +30,7 @@ def sitemap
current_site.components.where({name: "menu", publish: true}).each do |component|
menus_order.merge!(Weby::Components.factory(component).menu_id => Weby::Components.factory(component).sitemap_position.blank? ? 9999 : Weby::Components.factory(component).sitemap_position.to_i)
end
menus_order.sort_by{|id,value| value}.each do |menu_order|
menus_order.sort_by { |id,value| value }.each do |menu_order|
@published_menus.merge!(@published_menus.length => current_site.menus.find(menu_order[0]))
end
end
@@ -19,7 +19,7 @@
<th style="width: 30%"> <%= t('.value') %> </th>
<th style="width: 50%"> <%= t('.description') %> </th>
</tr>
</thead>
</thead>
<tbody>
<% @settings.each do |setting| %>
<% if setting.group == group %>
View
@@ -249,7 +249,7 @@
it "returns false if the notification hasn't been read" do
notification1 = double(:notification, id: 2)
allow(subject).to receive(:unread_notifications_array).and_return([1,2])
allow(subject).to receive(:unread_notifications_array).and_return([1, 2])
expect(subject.has_read?(notification1)).to eq(false)
end

0 comments on commit 2b98395

Please sign in to comment.