test/lib/archiveable_test.rb in archiveable-0.0.5 vs test/lib/archiveable_test.rb in archiveable-0.0.6

- old
+ new

@@ -44,9 +44,15 @@ it "unsets the archived_at when archived is set to false" do subject.archived_at = Time.now subject.archived = false subject.archived_at.must_equal nil end + + it "unsets the archived_at when archived is set to 0" do + subject.archived_at = Time.now + subject.archived = 0 + subject.archived_at.must_equal nil + end end describe ".published" do it "returns true when it is not archived" do subject.archived = false