Sha256: 7ed1e6a6a774788ca66c20e2d25c2f4167ed1b715158f447e474471fd070f01f

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 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

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.12.0 spec/card_spec.rb
squib-0.11.0 spec/card_spec.rb
squib-0.10.0 spec/card_spec.rb