Range option shouldn't fail on []

Fixes #107
This commit is contained in:
Andy Meneely
2015-10-13 15:01:14 -04:00
parent c976772b9e
commit e8d7480a63
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -33,4 +33,9 @@ describe Squib::Args::CardRange do
expect(range.to_a).to eq([0])
end
it 'allows [] as an empty range' do
range = Squib::Args::CardRange.new([], deck_size: 5)
expect(range.to_a).to eq([])
end
end