diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-25 20:22:01 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-25 20:22:01 -0500 |
commit | eaa6eabc680cb6264594e30fd6a56e3e36765269 (patch) | |
tree | 6b94e445867bbb61209efbb009a5bd862e33ca47 /spec/integration/indirector | |
parent | eb5e42263c109096a2ab4aa31f062f3e603db0dd (diff) | |
download | puppet-eaa6eabc680cb6264594e30fd6a56e3e36765269.tar.gz puppet-eaa6eabc680cb6264594e30fd6a56e3e36765269.tar.xz puppet-eaa6eabc680cb6264594e30fd6a56e3e36765269.zip |
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.
Diffstat (limited to 'spec/integration/indirector')
-rwxr-xr-x | spec/integration/indirector/rest.rb | 4 |
1 files 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 |