Files
grecia/spec/helpers/user_helper_spec.rb
2015-10-28 12:47:51 +01:00

14 lines
337 B
Ruby

require 'rails_helper'
describe UserHelper do
describe '#humanize_document_type' do
it "should return a humanized document type" do
expect(humanize_document_type("1")).to eq "DNI"
expect(humanize_document_type("2")).to eq "Passport"
expect(humanize_document_type("3")).to eq "Residence card"
end
end
end