Fix hound warnings

This commit is contained in:
decabeza
2019-04-30 12:06:56 +02:00
parent 1719a8ed28
commit 367c2e7b78
2 changed files with 7 additions and 7 deletions

View File

@@ -5,6 +5,6 @@
<%= f.file_field 'attachment', label: t("admin.documents.new.label_attachment") %> <%= f.file_field 'attachment', label: t("admin.documents.new.label_attachment") %>
<div class="margin-top"> <div class="margin-top">
<%= f.submit t("admin.documents.new.submit_button"), class: "button success" %> <%= f.submit t("admin.documents.new.submit_button"), class: "button success" %>
</div> </div>
<% end %> <% end %>

View File

@@ -1,6 +1,6 @@
require 'rails_helper' require "rails_helper"
feature 'Documents' do feature "Documents" do
before do before do
admin = create(:administrator) admin = create(:administrator)
@@ -37,22 +37,22 @@ feature 'Documents' do
expect(page).to have_content "There are no documents." expect(page).to have_content "There are no documents."
end end
scenario 'Index (pagination)' do scenario "Index (pagination)" do
per_page = Kaminari.config.default_per_page per_page = Kaminari.config.default_per_page
(per_page + 5).times { create(:document, :admin) } (per_page + 5).times { create(:document, :admin) }
visit admin_site_customization_documents_path visit admin_site_customization_documents_path
expect(page).to have_selector('#documents .document', count: per_page) expect(page).to have_selector("#documents .document", count: per_page)
within("ul.pagination") do within("ul.pagination") do
expect(page).to have_content("1") expect(page).to have_content("1")
expect(page).to have_link('2', href: admin_site_customization_documents_url(page: 2)) expect(page).to have_link("2", href: admin_site_customization_documents_url(page: 2))
expect(page).not_to have_content("3") expect(page).not_to have_content("3")
click_link "Next", exact: false click_link "Next", exact: false
end end
expect(page).to have_selector('#documents .document', count: 5) expect(page).to have_selector("#documents .document", count: 5)
end end
scenario "Create" do scenario "Create" do