public
Fork of nicksieger/warbler
Description: Warbler chirpily constructs .war files of your Rails applications.
Homepage: http://caldersphere.rubyforge.org/warbler
Clone URL: git://github.com/dysinger/warbler.git
Search Repo:
Add another check on ignored keys
nicksieger (author)
Wed May 07 02:00:21 -0700 2008
commit  84f1c9a9141ac6353f8690e5f1455d3d113bd855
tree    e67aeb15db35fab50ea3da63410d41a0bc82e482
parent  1fc9860a5cf91e0dca80e6258f7c541664097e1c
...
166
167
168
169
170
 
171
172
173
...
166
167
168
 
 
169
170
171
172
0
@@ -166,8 +166,7 @@
0
           params[k] = v.to_s
0
         end
0
       end
0
- params.delete 'ignored'
0
- self.ignored.each {|k| params.delete k }
0
+ params.delete_if {|k,v| ['ignored', *ignored].include?(k) }
0
       params
0
     end
0
   end
...
77
78
79
 
80
81
82
...
77
78
79
80
81
82
83
0
@@ -77,6 +77,7 @@
0
   end
0
 
0
   it "should not include ignored webxml keys in the context params hash" do
0
+ Warbler::Config.new.webxml.context_params.should_not have_key('ignored')
0
     Warbler::Config.new.webxml.context_params.should_not have_key('jndi')
0
     Warbler::Config.new.webxml.context_params.should_not have_key('booter')
0
   end

Comments

    No one has commented yet.