Sha256: 2bee24df9b773c2f8c3b5688e27f196493b668a82cc6c41bb2ce89df82c9b004
Contents?: true
Size: 591 Bytes
Versions: 10
Compression:
Stored size: 591 Bytes
Contents
require "spec_helper" describe "Invoker Power configuration", fakefs: true do describe "#create" do it "should create a config file given a hash" do FileUtils.mkdir_p(inv_conf_dir) config = Invoker::Power::Config.create( dns_port: 1200, http_port: 1201, ipfw_rule_number: 010 ) expect(File.exist?(Invoker::Power::Config.config_file)).to be_truthy config = Invoker::Power::Config.load_config() expect(config.dns_port).to eq(1200) expect(config.http_port).to eq(1201) expect(config.ipfw_rule_number).to eq(010) end end end
Version data entries
10 entries across 10 versions & 3 rubygems