Sha256: 5e9ca4ac91009581179fd684da3fec60e3fbe713a98066880428beb2cc2c3be1

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 Bytes

Contents

# encoding: utf-8
#
# This file is part of the akaer gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "spec_helper"

describe Akaer::Configuration do
  describe "#initialize" do
    it "sets default arguments and rules" do
      config = Akaer::Configuration.new
      expect(config.interface).to eq("lo0")
      expect(config.addresses).to eq([])
      expect(config.start_address).to eq("10.0.0.1")
      expect(config.aliases).to eq(5)
      expect(config.add_command).to eq("sudo ifconfig {{interface}} alias {{address}}")
      expect(config.remove_command).to eq("sudo ifconfig {{interface}} -alias {{address}}")
      expect(config.log_file).to eq($stdout)
      expect(config.log_level).to eq(Logger::INFO)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
akaer-2.4.1 spec/akaer/configuration_spec.rb