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