spec/choice_spec.rb in bindata-1.5.0 vs spec/choice_spec.rb in bindata-1.5.1

- old
+ new

@@ -161,9 +161,21 @@ subject.clear subject.should be_zero end + it "clears all possible choices" do + subject.choice = 3 + subject.assign(10) + subject.choice = 5 + subject.assign(11) + + subject.clear + + subject.choice = 3 + subject.should be_zero + end + it "is clear on initialisation" do subject.choice = 3 subject.should be_clear end