Sha256: f61955f25538df2003a94565422b7be35ff726ab175a265a3c051caa5d5ab648

Contents?: true

Size: 566 Bytes

Versions: 17

Compression:

Stored size: 566 Bytes

Contents

require 'kontena/cli/volumes/create_command'

describe Kontena::Cli::Volumes::CreateCommand do
  let(:subject) { described_class.new("kontena") }

  describe '#parse_driver_opts' do
    it 'parses driver opts' do
      allow(subject).to receive(:driver_opt_list).and_return([
        'foo=bar',
        'o=addr=XXX.XXX.XXX.XXX,rw,nfsvers=3,nolock,proto=udp,port=2049'
      ])
      opts = subject.parse_driver_opts
      expect(opts['foo']).to eq('bar')
      expect(opts['o']).to eq('addr=XXX.XXX.XXX.XXX,rw,nfsvers=3,nolock,proto=udp,port=2049')
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
kontena-cli-1.5.4 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.4.rc1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.3 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.2 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.rc1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.pre5 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.pre4 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.pre3 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.pre2 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.5.0.pre1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.4.3 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.4.3.rc1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.4.2 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.4.2.rc1 spec/kontena/cli/volumes/create_command_spec.rb
kontena-cli-1.4.2.pre1 spec/kontena/cli/volumes/create_command_spec.rb