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