spec/support/hashes.rb in attributor-5.0.2 vs spec/support/hashes.rb in attributor-5.1.0
- old
+ new
@@ -1,14 +1,13 @@
class HashWithModel < Attributor::Hash
keys do
- key :name, String, :default => "Turkey McDucken", :description => "Turducken name", :example => /[:name:]/
+ key :name, String, default: 'Turkey McDucken', description: 'Turducken name', example: Randgen.name
key :chicken, Chicken
end
end
-
class HashWithStrings < Attributor::Hash
keys do
key :name, String
key :something, String
end
-end
\ No newline at end of file
+end