spec/trema/hardware-switch_spec.rb in trema-0.4.6 vs spec/trema/hardware-switch_spec.rb in trema-0.4.7
- old
+ new
@@ -14,35 +14,35 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-require File.join( File.dirname( __FILE__ ), "..", "spec_helper" )
-require "trema/dsl/switch"
-require "trema/hardware-switch"
+require File.join(File.dirname(__FILE__), '..', 'spec_helper')
+require 'trema/dsl/switch'
+require 'trema/hardware-switch'
module Trema
- describe HardwareSwitch, %[dpid = "0xabc"] do
+ describe HardwareSwitch, 'dpid = 0xabc' do
before :each do
stanza = DSL::Switch.new
- stanza.dpid "0xabc"
- @switch = HardwareSwitch.new( stanza )
+ stanza.dpid '0xabc'
+ @switch = HardwareSwitch.new(stanza)
end
- it "should return its name" do
- expect( @switch.name ).to eq( "0xabc" )
+ it 'should return its name' do
+ expect(@switch.name).to eq('0xabc')
end
- it "should return dpid in long format" do
- expect( @switch.dpid_long ).to eq( "0000000000000abc" )
+ it 'should return dpid in long format' do
+ expect(@switch.dpid_long).to eq('0000000000000abc')
end
- it "should return dpid in short format" do
- expect( @switch.dpid_short ).to eq( "0xabc" )
+ it 'should return dpid in short format' do
+ expect(@switch.dpid_short).to eq('0xabc')
end
end
end