Sha256: f8e9e5d87e98f4aa1a83c33407d17fed1d78ccd5e9db4e9634f5ec32ef864ae1
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
require 'spec_helper' describe RakeMKV::Code do describe '#new' do it 'takes the index' do expect(RakeMKV::Code.new(5)).to be_a RakeMKV::Code expect(RakeMKV::Code.new(5).index).to eq 5 end end describe '#to_sym' do it 'returns the code' do expect(RakeMKV::Code.new(5).to_sym).to eq :codec_id end end describe '.[]' do it 'gets the code' do expect(RakeMKV::Code[5]).to eq :codec_id end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rakemkv-0.3.0 | spec/lib/rakemkv/code_spec.rb |
rakemkv-0.2.0 | spec/lib/rakemkv/code_spec.rb |