Sha256: 2f1185952f5154dfdf8c73bf77c7b49d45fe60a3254b5a09c60e9cf77d0d1135
Contents?: true
Size: 568 Bytes
Versions: 5
Compression:
Stored size: 568 Bytes
Contents
require 'spec_helper' set :os, :family => 'linux' describe commands.command_class('interface').create do it { should be_an_instance_of(Specinfra::Command::Linux::Base::Interface) } end describe interface('eth0') do let(:stdout) { '1000' } its(:speed) { should eq 1000 } end describe interface('eth0') do it { should have_ipv4_address("192.168.10.10") } end describe interface('eth0') do it { should have_ipv4_address("192.168.10.10/24") } end describe interface('invalid-interface') do let(:stdout) { '1000' } its(:speed) { should_not eq 100 } end
Version data entries
5 entries across 5 versions & 1 rubygems