From 0801cab4618ae833644e46c7bb54c3294b12d4ad Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 28 Sep 2015 15:14:50 +0200 Subject: [PATCH] adds spec for humanize document type helper [#500] --- spec/helpers/admin_helper_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spec/helpers/admin_helper_spec.rb diff --git a/spec/helpers/admin_helper_spec.rb b/spec/helpers/admin_helper_spec.rb new file mode 100644 index 000000000..25fd62a8e --- /dev/null +++ b/spec/helpers/admin_helper_spec.rb @@ -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 \ No newline at end of file