spec/pio/echo/reply_spec.rb in pio-0.7.0 vs spec/pio/echo/reply_spec.rb in pio-0.8.0

- old
+ new

@@ -5,11 +5,11 @@ describe Pio::Echo::Reply do describe '.new' do context 'with no arguments' do When(:echo_reply) { Pio::Echo::Reply.new } - Then { echo_reply.version == 1 } + Then { echo_reply.ofp_version == 1 } Then { echo_reply.message_type == Pio::Echo::REPLY } Then { echo_reply.message_length == 8 } Then { echo_reply.transaction_id == 0 } Then { echo_reply.xid == 0 } Then { echo_reply.data == '' } @@ -17,11 +17,11 @@ end context 'with 123' do When(:echo_reply) { Pio::Echo::Reply.new(123) } - Then { echo_reply.version == 1 } + Then { echo_reply.ofp_version == 1 } Then { echo_reply.message_type == Pio::Echo::REPLY } Then { echo_reply.message_length == 8 } Then { echo_reply.transaction_id == 123 } Then { echo_reply.xid == 123 } Then { echo_reply.data == '' } @@ -38,11 +38,11 @@ end context 'with transaction_id: 123' do When(:echo_reply) { Pio::Echo::Reply.new(transaction_id: 123) } - Then { echo_reply.version == 1 } + Then { echo_reply.ofp_version == 1 } Then { echo_reply.message_type == Pio::Echo::REPLY } Then { echo_reply.message_length == 8 } Then { echo_reply.transaction_id == 123 } Then { echo_reply.xid == 123 } Then { echo_reply.data == '' } @@ -50,11 +50,11 @@ end context 'with xid: 123' do When(:echo_reply) { Pio::Echo::Reply.new(xid: 123) } - Then { echo_reply.version == 1 } + Then { echo_reply.ofp_version == 1 } Then { echo_reply.message_type == Pio::Echo::REPLY } Then { echo_reply.message_length == 8 } Then { echo_reply.transaction_id == 123 } Then { echo_reply.xid == 123 } Then { echo_reply.data == '' } @@ -62,10 +62,10 @@ end context "with transaction_id: 123, data: 'foobar'" do When(:echo_reply) { Pio::Echo::Reply.new(xid: 123, data: 'foobar') } - Then { echo_reply.version == 1 } + Then { echo_reply.ofp_version == 1 } Then { echo_reply.message_type == Pio::Echo::REPLY } Then { echo_reply.message_length == 14 } Then { echo_reply.transaction_id == 123 } Then { echo_reply.xid == 123 } Then { echo_reply.data == 'foobar' }