Sha256: 6d9a59349e581e3561bbb653439d2b90959a9c82489e6b6b417e340c73e68cbb
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
require 'spec_helper' require 'squib/card' describe Squib::Card do it 'logs fatal for unknown backend' do deck = OpenStruct.new(dir: '.', prefix: '', count_format: '%02d', backend: 'broken robots') expect(Squib::logger).to receive(:fatal).with("Back end not recognized: 'broken robots'") expect { Squib::Card.new(deck, 100, 100, 0) }.to raise_error SystemExit end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.9.0 | spec/card_spec.rb |