Sha256: f97e8b7594df72074f5a9c968111ae6ed6ef52e33abaaaa6f940b6920021dd17

Contents?: true

Size: 883 Bytes

Versions: 95

Compression:

Stored size: 883 Bytes

Contents

# ********** Copyright Viacom, Inc. Apache 2.0 **********

require_relative "test_helper.rb"

module RokuBuilder
  class UtilTest < Minitest::Test
    def setup
      options = build_options
      @config = Config.new(options: options)
      @device_config = {
        ip: "111.222.333",
        user: "user",
        password: "password"
      }
      @config.instance_variable_set(:@parsed, {device_config: @device_config, init_params: {}})
    end
    def test_util_init
      test = UtilTestClass.new(config: @config)
      assert test.inited
    end
    def test_util_no_init
      UtilTestClass2.new(config: @config)
    end
  end

  class UtilTestClass < Util
    def init
      @inited = true
    end
    def inited
      @inited || false
    end
  end
  class UtilTestClass2 < Util
    def self.commands
    end
    def self.parse_options(option_parser:)
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
roku_builder-4.30.0 test/roku_builder/test_util.rb
roku_builder-4.29.9 test/roku_builder/test_util.rb
roku_builder-4.29.8 test/roku_builder/test_util.rb
roku_builder-4.29.7 test/roku_builder/test_util.rb
roku_builder-4.29.6 test/roku_builder/test_util.rb
roku_builder-4.29.4 test/roku_builder/test_util.rb
roku_builder-4.29.2 test/roku_builder/test_util.rb
roku_builder-4.29.1 test/roku_builder/test_util.rb
roku_builder-4.28.0 test/roku_builder/test_util.rb
roku_builder-4.27.2 test/roku_builder/test_util.rb
roku_builder-4.27.1 test/roku_builder/test_util.rb
roku_builder-4.27.0 test/roku_builder/test_util.rb
roku_builder-4.26.2 test/roku_builder/test_util.rb
roku_builder-4.26.1 test/roku_builder/test_util.rb
roku_builder-4.26.0 test/roku_builder/test_util.rb
roku_builder-4.25.6 test/roku_builder/test_util.rb
roku_builder-4.25.5 test/roku_builder/test_util.rb
roku_builder-4.25.4 test/roku_builder/test_util.rb
roku_builder-4.25.3 test/roku_builder/test_util.rb
roku_builder-4.25.1 test/roku_builder/test_util.rb