spec/mvcli/form_spec.rb in mvcli-0.0.14 vs spec/mvcli/form_spec.rb in mvcli-0.0.16
- old
+ new
@@ -122,9 +122,9 @@
include MVCLI::Validatable
attr_accessor :address, :port, :protocol, :condition, :type
validates(:port, "port must be between 0 and 65,535") {|port| port >= 0 && port <= 65535}
def initialize(attrs)
- @address, @port, @protocal, @condition, @type = *attrs.values_at(:address, :port, :protocol, :condition, :type)
+ @address, @port, @protocal, @condition, @type = attrs.values_at(:address, :port, :protocol, :condition, :type)
end
end