spec/lazy_spec.rb in moosex-0.0.18 vs spec/lazy_spec.rb in moosex-0.0.19
- old
+ new
@@ -15,17 +15,17 @@
builder: :my_build_other_thing,
}
has lazy_attr_who_accepts_lambda: {
is: :lazy,
- builder: lambda{ |object| object.something }
+ builder: ->(this){ this.something }
}
has lazy_with_default: {
is: :lazy,
default: 10,
clearer: true,
- builder: lambda {|o| 1 },
+ builder: ->(this) { 1 },
}
has last_lazy_attr: {
is: :rw,
lazy: true,