Fix Continuation specs

bug/bundler_fix
jvazquez-r7 2015-01-08 16:51:33 -06:00
parent 5dfc0f1665
commit c05b2e2b03
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe Rex::Proto::Rmi::Model::Continuation do
describe "#decode" do
it "returns the Rex::Proto::Rmi::Model::Continuation decoded" do
expect(continuation.decode(sample_io)).to eq(protocol_ack)
expect(continuation.decode(sample_io)).to eq(continuation)
end
it "decodes length correctly" do
@ -41,7 +41,7 @@ describe Rex::Proto::Rmi::Model::Continuation do
describe "#encode" do
it "encodes the Continuation correctly" do
continuation.address = '172.16.158.132'
continuation.length = protocol_ack.address.length
continuation.length = continuation.address.length
continuation.port = 0
expect(continuation.encode).to eq(sample)