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

Version Path
cosmos-4.5.2-java spec/streams/stream_spec.rb
cosmos-4.5.2 spec/streams/stream_spec.rb
cosmos-4.5.1-java spec/streams/stream_spec.rb
cosmos-4.5.1 spec/streams/stream_spec.rb
cosmos-4.5.0-java spec/streams/stream_spec.rb
cosmos-4.5.0 spec/streams/stream_spec.rb
cosmos-4.4.2-java spec/streams/stream_spec.rb
cosmos-4.4.2 spec/streams/stream_spec.rb
cosmos-4.4.1-java spec/streams/stream_spec.rb
cosmos-4.4.1 spec/streams/stream_spec.rb
cosmos-4.4.0-java spec/streams/stream_spec.rb
cosmos-4.4.0 spec/streams/stream_spec.rb
cosmos-4.3.0-java spec/streams/stream_spec.rb
cosmos-4.3.0 spec/streams/stream_spec.rb
cosmos-4.2.4-java spec/streams/stream_spec.rb
cosmos-4.2.4 spec/streams/stream_spec.rb
cosmos-4.2.3-java spec/streams/stream_spec.rb
cosmos-4.2.3 spec/streams/stream_spec.rb
cosmos-4.2.2-java spec/streams/stream_spec.rb
cosmos-4.2.2 spec/streams/stream_spec.rb