Skip to content

Commit

Permalink
Renaming JNDIContext#lookup_object to JNDIContext#lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Blair committed Dec 21, 2011
1 parent 394359d commit 7e28805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/reigns/jndi_context.rb
Expand Up @@ -10,7 +10,7 @@ def initialize(mappings)
LightweightJNDIContextFactory.set_context(self)
end

def lookup_object(name)
def lookup(name)
@mappings[name]
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/jndi_context_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7e28805

Please sign in to comment.