spec/scaffolder/test/sequence_spec.rb in scaffolder-test-helpers-0.2.0 vs spec/scaffolder/test/sequence_spec.rb in scaffolder-test-helpers-0.2.1
- old
+ new
@@ -47,6 +47,17 @@
end
end
+ describe "#clone" do
+
+ it "should also duplicate the internal options state" do
+ a = described_class.new(:name => 'contig1',:sequence => 'ATGCCC')
+ b = a.clone
+
+ a.instance_variable_get("@options").
+ should_not equal(b.instance_variable_get("@options"))
+ end
+
+ end
end