Merge branch 'master' into polls

This commit is contained in:
Juanjo Bazán
2016-12-28 12:16:55 +01:00
7 changed files with 20 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ feature 'Signature sheets' do
expect(page).to have_content signature_sheet.created_at.strftime("%d %b %H:%M")
expect(page).to have_content user.name
within("#document_count") do
expect(page).to have_content 3
end
within("#verified_signatures") do
expect(page).to have_content 1
end

View File

@@ -76,6 +76,12 @@ describe SignatureSheet do
expect(signature_sheet.parsed_document_numbers).to eq(['123A', '456B', '789C', '123B'])
end
it "strips spaces between number and letter" do
signature_sheet.document_numbers = "123 A\n456 B \n 789C"
expect(signature_sheet.parsed_document_numbers).to eq(['123A', '456B', '789C'])
end
end
end