spec/support/models/dummy_builder.rb in sinclair-1.1.1 vs spec/support/models/dummy_builder.rb in sinclair-1.1.2
- old
+ new
@@ -1,7 +1,11 @@
-class Sinclair::DummyBuilder < Sinclair
- def init
- add_method(:blocked) { 1 }
- add_method(:defined, "@value = value + #{ options_object.try(:increment) || 1 }")
- add_method(:value, "@value ||= 0")
+# frozen_string_literal: true
+
+class Sinclair
+ class DummyBuilder < Sinclair
+ def init
+ add_method(:blocked) { 1 }
+ add_method(:defined, "@value = value + #{options_object&.increment || 1}")
+ add_method(:value, '@value ||= 0')
+ end
end
end