lib/scaffolder/test/sequence.rb in scaffolder-test-helpers-0.2.0 vs lib/scaffolder/test/sequence.rb in scaffolder-test-helpers-0.2.1
- old
+ new
@@ -5,9 +5,14 @@
def initialize(options = {})
@options = options
end
+ def initialize_copy(source)
+ super
+ @options = @options.dup
+ end
+
[:name,:sequence,:reverse,:start,:stop].each do |attribute|
define_method(attribute) do |*arg|
unless arg.first
return @options[attribute]
end