Sha256: f53fbce6c4fed266566057266c59b7e5144f2fd183c5a7be1958c41b4d12602f
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
require 'spec_helper' describe Smartdc::CliConfigure do let(:path) { File.join(Smartdc.root, 'spec/fixtures/config/sdccfg') } let(:configure) { Smartdc::CliConfigure.new(path) } let(:options) do { hostname: 'example.com', version: '~7.0', username: 'user', use_key: '4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8' } end describe "#path" do it "returns a path" do expect(configure.path).to eq path end end describe "#read" do it "returns some configuration" do expect(configure.read).to eq options end end describe "#write" do it "returns some configuration" do expect(configure.write(options)).to eq options end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smartdc-2.0.2 | spec/smartdc/cli_configure_spec.rb |
smartdc-2.0.1 | spec/smartdc/cli_configure_spec.rb |
smartdc-2.0.0 | spec/smartdc/cli_configure_spec.rb |