Sha256: 1928d58b3ef50b91148a4b79344fc6cbd050fb671d2c78f16992bc68ea27d914
Contents?: true
Size: 899 Bytes
Versions: 59
Compression:
Stored size: 899 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'spec_helper' require 'cosmos/streams/stream' module Cosmos describe Stream do describe "read, write, connected?, disconnect" do it "raises an error" do expect { Stream.new.read }.to raise_error(/not defined/) expect { Stream.new.write(nil) }.to raise_error(/not defined/) expect { Stream.new.connect }.to raise_error(/not defined/) expect { Stream.new.connected? }.to raise_error(/not defined/) expect { Stream.new.disconnect }.to raise_error(/not defined/) end end end end
Version data entries
59 entries across 59 versions & 1 rubygems