Skip to content

Commit a9157cb

Browse files
committed
Add specs for java_method/java_send on an interface module. #2857
1 parent 563c402 commit a9157cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/java_integration/interfaces/static_methods_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,13 @@
2525
it "binds those methods on the proxy module" do
2626
expect(Java::Java8Interface.message).to eq("hello")
2727
end
28+
29+
it "exposes those methods via java_send" do
30+
expect(Java::Java8Interface.java_send(:message)).to eq("hello")
31+
end
32+
33+
it "exposes those methods via java_method" do
34+
expect(Java::Java8Interface.java_method(:message).call).to eq("hello")
35+
end
2836
end
2937
end

0 commit comments

Comments
 (0)