spec/baz_spec.rb in moosex-0.0.18 vs spec/baz_spec.rb in moosex-0.0.19
- old
+ new
@@ -4,10 +4,10 @@
class Baz
include MooseX
has bam: {
is: :ro, # read-only, you should specify in new only
- isa: lambda do |bam| # you should add your own validator
+ isa: ->(bam) do # you should add your own validator
raise 'bam should be less than 100' if bam > 100
end,
required: true,
}