Sha256: eed0b76cb82220fbab1cf61fcecc62ec0bf23f9f8569789b39a8b39e0322b3ef

Contents?: true

Size: 873 Bytes

Versions: 24

Compression:

Stored size: 873 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 'rails_helper'
require 'dart_logging'

describe DartLogging do
  describe "logging" do
    it "starts a log and captures stdout" do
      logger = DartLogging.new('dart_test')
      sleep 0.1
      test_string = "This is a test"
      puts test_string # This should go in the log
      logger.stop

      Dir["#{Cosmos::System.paths['DART_LOGS']}/*"].each do |file|
        expect(file).to match(/dart_test/)
        data = File.read(file)
        expect(File.read(file)).to include(test_string)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cosmos-4.5.2-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.5.2 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.5.1-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.5.1 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.5.0-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.5.0 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.2-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.2 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.1-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.1 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.0-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.4.0 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.3.0-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.3.0 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.4-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.4 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.3-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.3 lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.2-java lib/cosmos/dart/spec/dart/dart_logging_spec.rb
cosmos-4.2.2 lib/cosmos/dart/spec/dart/dart_logging_spec.rb