search for: hax0rz

Displaying 1 result from an estimated 1 matches for "hax0rz".

Did you mean: hax0r
2007 May 30
9
Specify attr_protected
...lls? Pseudo-code: describe Order do [:total, :id, :customer_ip, :status, :error_message, :updated_at, :created_at, :finalize, :tax, :shipping].each do |attribute| it "should protect #{attribute} attributes from mass assignment" do @order = Order.new(attribute => ''hax0rz'') @order.attribute.should_not == ''hax0rz'' end end end What would the actual implementation look like?