spec/cleaner_spec.rb in bugsnag-5.0.1 vs spec/cleaner_spec.rb in bugsnag-5.1.0
- old
+ new
@@ -17,9 +17,14 @@
a << a
a << "hello"
expect(subject.clean_object(a)).to eq(["[RECURSION]", "hello"])
end
+ it "doesn't remove nil from arrays" do
+ a = ["b", nil, "c"]
+ expect(subject.clean_object(a)).to eq(["b", nil, "c"])
+ end
+
it "allows multiple copies of the same string" do
a = {:name => "bugsnag"}
a[:second] = a[:name]
expect(subject.clean_object(a)).to eq({:name => "bugsnag", :second => "bugsnag"})
end