Sha256: c9321f8d1f9610b47a86b373b1bf248369103aefc0a316e0d5ea1808e3440d3a

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/stdout'

module Cosmos

  describe Stdout do

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

    describe "puts" do
      it "writes to STDOUT" do
        expect($stdout).to receive(:puts).with("TEST")
        Stdout.instance.puts("TEST")
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
cosmos-3.8.2 spec/io/stdout_spec.rb
cosmos-3.8.1 spec/io/stdout_spec.rb
cosmos-3.8.0 spec/io/stdout_spec.rb
cosmos-3.7.1 spec/io/stdout_spec.rb
cosmos-3.7.0 spec/io/stdout_spec.rb
cosmos-3.6.3 spec/io/stdout_spec.rb
cosmos-3.6.2 spec/io/stdout_spec.rb
cosmos-3.6.1 spec/io/stdout_spec.rb
cosmos-3.6.0 spec/io/stdout_spec.rb
cosmos-3.5.3 spec/io/stdout_spec.rb
cosmos-3.5.2 spec/io/stdout_spec.rb
cosmos-3.5.0 spec/io/stdout_spec.rb
cosmos-3.4.2 spec/io/stdout_spec.rb
cosmos-3.4.1 spec/io/stdout_spec.rb
cosmos-3.4.0 spec/io/stdout_spec.rb
cosmos-3.3.3 spec/io/stdout_spec.rb
cosmos-3.3.2 spec/io/stdout_spec.rb
cosmos-3.3.1 spec/io/stdout_spec.rb
cosmos-3.3.0 spec/io/stdout_spec.rb