Sha256: 935b6f2da017eb76c5dc5d9bf9bfe0d748589caaa017f6ac6303c6779246e297
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
require 'spec_helper' describe RakeMKV::Titles do describe '#at_id' do it 'finds titles by id but not place' do first_title = double(RakeMKV::Title, id: 0) last_title = double(RakeMKV::Title, id: 1) titles = RakeMKV::Titles.new([last_title, first_title]) expect(titles.at_id(1)).to eq last_title end end describe '#longest' do it 'finds the longest time' do short_title = double(RakeMKV::Title, time: 20) long_title = double(RakeMKV::Title, time: 50) titles = RakeMKV::Titles.new([short_title, long_title]) expect(titles.longest).to eq long_title end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rakemkv-0.3.0 | spec/lib/rakemkv/titles_spec.rb |
rakemkv-0.2.0 | spec/lib/rakemkv/titles_spec.rb |