spec/unit/util/network_device/cisco/device_spec.rb in puppet-2.7.26 vs spec/unit/util/network_device/cisco/device_spec.rb in puppet-3.0.0.rc4
- old
+ new
@@ -1,6 +1,6 @@
-#!/usr/bin/env rspec
+#! /usr/bin/env ruby -S rspec
require 'spec_helper'
require 'puppet/util/network_device/cisco/device'
describe Puppet::Util::NetworkDevice::Cisco::Device do
@@ -143,11 +143,11 @@
"Ethernet 0/0/1" => "Ethernet0/0/1",
"E0" => "Ethernet0",
"ATM 0/1.1" => "ATM0/1.1",
"VLAN99" => "VLAN99"
}.each do |input,expected|
- it "should canonicalize #{input} to #{expected}", :'fails_on_ruby_1.9.2' => true do
+ it "should canonicalize #{input} to #{expected}" do
@cisco.canonalize_ifname(input).should == expected
end
end
describe "when updating device vlans" do
@@ -230,10 +230,10 @@
eos
@cisco.parse_interface("FastEthernet0/1").should == { :ensure => :absent, :duplex => :auto, :speed => :auto }
end
- it "should be able to parse the sh vlan brief command output", :'fails_on_ruby_1.9.2' => true do
+ it "should be able to parse the sh vlan brief command output" do
@cisco.stubs(:support_vlan_brief?).returns(true)
@transport.stubs(:command).with("sh vlan brief").returns(<<eos)
Switch#sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------