Sha256: d7433cb31c08b532dc16affbea5c78a6420c9149d09bc950255e4bc096ad9d39
Contents?: true
Size: 352 Bytes
Versions: 5
Compression:
Stored size: 352 Bytes
Contents
RSpec.describe TTY::Spinner::Multi, "#on" do let(:output) { StringIO.new("", "w+") } it "fails to register a callback with invalid event name" do spinners = TTY::Spinner::Multi.new(output: output) expect { spinners.on(:unknown_event) { :noop } }.to raise_error(ArgumentError, /The event unknown_event does not exist/) end end
Version data entries
5 entries across 5 versions & 1 rubygems