adds spec for humanize document type helper [#500]

This commit is contained in:
rgarcia
2015-09-28 15:14:50 +02:00
parent adb1dd6f2b
commit 0801cab461

View File

@@ -0,0 +1,13 @@
require 'rails_helper'
describe AdminHelper do
describe '#humanize_document_type' do
it "should return a humanized document type" do
expect(humanize_document_type("1")).to eq "Spanish ID"
expect(humanize_document_type("2")).to eq "Passport"
expect(humanize_document_type("3")).to eq "Residence card"
end
end
end