Skip to content

Commit 48026da

Browse files
committed
Fix RMI specs
1 parent 0a07bb4 commit 48026da

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

spec/lib/msf/java/rmi/client/registry/parser_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@
6161

6262
let(:names) { ['jmxrmi'] }
6363

64-
describe "#parse_registry_lookup" do
65-
it "returns the remote object" do
66-
expect(mod.parse_registry_lookup(lookup_return)).to eq(remote_object)
67-
end
68-
end
69-
7064
describe "#parse_registry_lookup_endpoint" do
7165
it "returns the remote reference information in a Hash" do
7266
expect(mod.parse_registry_lookup_endpoint(lookup_return)).to be_a(Hash)

spec/lib/msf/java/rmi/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_once(length = -1, timeout = 10)
8686
describe "#recv_return" do
8787
context "when end point returns a value to the call" do
8888
it "returns a Rex::Java::Serialization::Model::Stream" do
89-
expect(mod.recv_return(sock: return_io)).to be_a(Rex::Java::Serialization::Model::Stream)
89+
expect(mod.recv_return(sock: return_io)).to be_a(Rex::Proto::Rmi::Model::ReturnValue)
9090
end
9191
end
9292

0 commit comments

Comments
 (0)