Sha256: ee33bcb2f83b27ba9feaac18e3015e672ad76c4f7bcb928300e0fc019f129067

Contents?: true

Size: 744 Bytes

Versions: 59

Compression:

Stored size: 744 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/io/stderr'

module Cosmos

  describe Stderr do

    describe "instance" do
      it "returns a single instance" do
        expect(Stderr.instance).to eq(Stderr.instance)
      end
    end

    describe "puts" do
      it "writes to STDERR" do
        expect($stderr).to receive(:puts).with("TEST")
        Stderr.instance.puts("TEST")
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

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