Sha256: 6185b378ed9c731d51ddca1a349e5f3b67ba3fae44fb1ae128ea69bf1ceb800f
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 Bytes
Contents
require 'spec_helper' describe AppleModels do it 'returns the correct model name when provided a model id' do AppleModels.find('iPad2,7').friendly_name.should == 'iPad Mini (Global)' end it 'returns nil when an unknown model id is provided' do AppleModels.find('iDoNotExist').should be_nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apple_models-2.0.1 | spec/apple_models_spec.rb |
apple_models-2.0.0 | spec/apple_models_spec.rb |