From eaa6eabc680cb6264594e30fd6a56e3e36765269 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 25 May 2008 20:22:01 -0500 Subject: Fixing #1258 -- Removing a Rails idiom. This idiom is only functional when you have Rails loaded, which is why it was failing for others but not me. --- spec/integration/indirector/rest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/integration/indirector/rest.rb b/spec/integration/indirector/rest.rb index 1a9671265..859648f7d 100755 --- a/spec/integration/indirector/rest.rb +++ b/spec/integration/indirector/rest.rb @@ -151,7 +151,7 @@ describe Puppet::Indirector::REST do end it 'should return the instance of the model class associated with the provided lookup key' do - Puppet::TestIndirectedFoo.search('bar').collect(&:value).should == @model_instances.collect(&:value) + Puppet::TestIndirectedFoo.search('bar').collect{ |x| x.value }.should == @model_instances.collect{ |x| x.value } end end @@ -359,7 +359,7 @@ describe Puppet::Indirector::REST do end it 'should return the instance of the model class associated with the provided lookup key' do - Puppet::TestIndirectedFoo.search('bar').collect(&:value).should == @model_instances.collect(&:value) + Puppet::TestIndirectedFoo.search('bar').collect{ |x| x.value }.should == @model_instances.collect{ |x| x.value } end it 'should set an expiration on model instances' do -- cgit