Sha256: e0b5350b1dbff654637ece2126d4c45241e731b3ee3f08bce27e3d94d2fdc5c4
Contents?: true
Size: 384 Bytes
Versions: 22
Compression:
Stored size: 384 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Debian describe interface('eth0') do let(:stdout) { '1000' } its(:speed) { should eq 1000 } its(:command) { should eq "ethtool eth0 | grep Speed | gawk '{print gensub(/Speed: ([0-9]+)Mb\\/s/,\"\\\\1\",\"\")}'" } end describe interface('invalid-interface') do let(:stdout) { '1000' } its(:speed) { should_not eq 100 } end
Version data entries
22 entries across 22 versions & 1 rubygems