Sha256: 6f42497a25f937df5e12ca1b5e94ff6252794a37a93306442287e19a3ef6649d
Contents?: true
Size: 480 Bytes
Versions: 4
Compression:
Stored size: 480 Bytes
Contents
require 'spec_helper' describe Cellularity::Imei do let(:invalid_imei) { [:blah, '123-123-123-123-12'] } let(:valid_imei) { ['123456789012345', 1234567890123456, '12-123456-123456-1'] } it 'should think that valid imeis are valid' do valid_imei.each { |imei| Cellularity::Imei.new(imei).valid?.should be_true } end it 'should think that invalid imeis are invalid' do invalid_imei.each { |imei| Cellularity::Imei.new(imei).valid?.should be_false } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cellularity-1.0.0 | spec/imei_spec.rb |
cellularity-0.0.2.1 | spec/imei_spec.rb |
cellularity-0.0.2 | spec/imei_spec.rb |
cellularity-0.0.1 | spec/imei_spec.rb |