Sha256: b49fa727c52657eecbf6f74bcaaa64d70b370a0701d3c9acbedf456b3d44162e
Contents?: true
Size: 494 Bytes
Versions: 20
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' RSpec.configure do |c| c.os = 'Gentoo' end describe default_gateway do let(:stdout) { "default via 192.168.1.1 dev eth1 \r\n" } its(:ipaddress) { should eq '192.168.1.1' } its(:command) { should eq "ip route | grep -E '^default |^default '" } its(:interface) { should eq 'eth1' } its(:command) { should eq "ip route | grep -E '^default |^default '" } its(:ipaddress) { should_not eq '192.168.1.2' } its(:interface) { should_not eq 'eth0' } end
Version data entries
20 entries across 20 versions & 1 rubygems