Skip to content

Commit

Permalink
Add specs for java_method/java_send on an interface module. #2857
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 22, 2015
1 parent 563c402 commit a9157cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/java_integration/interfaces/static_methods_spec.rb
Expand Up @@ -25,5 +25,13 @@
it "binds those methods on the proxy module" do
expect(Java::Java8Interface.message).to eq("hello")
end

it "exposes those methods via java_send" do
expect(Java::Java8Interface.java_send(:message)).to eq("hello")
end

it "exposes those methods via java_method" do
expect(Java::Java8Interface.java_method(:message).call).to eq("hello")
end
end
end

0 comments on commit a9157cb

Please sign in to comment.