From 7e288051cb76d643e25a7aa0f26b8f274c99c35e Mon Sep 17 00:00:00 2001 From: Stuart Blair Date: Tue, 20 Dec 2011 17:10:37 -0800 Subject: [PATCH] Renaming JNDIContext#lookup_object to JNDIContext#lookup --- lib/reigns/jndi_context.rb | 2 +- spec/jndi_context_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reigns/jndi_context.rb b/lib/reigns/jndi_context.rb index ab99234..364eb90 100644 --- a/lib/reigns/jndi_context.rb +++ b/lib/reigns/jndi_context.rb @@ -10,7 +10,7 @@ def initialize(mappings) LightweightJNDIContextFactory.set_context(self) end - def lookup_object(name) + def lookup(name) @mappings[name] end end diff --git a/spec/jndi_context_spec.rb b/spec/jndi_context_spec.rb index 75b896a..c11e0f0 100644 --- a/spec/jndi_context_spec.rb +++ b/spec/jndi_context_spec.rb @@ -12,7 +12,7 @@ module Reigns end it "should return the initial context configured with the mappings" do - @jndi_context.lookup_object('jndi_name').should eql 'service' + @jndi_context.lookup('jndi_name').should eql 'service' end end end