spec/sugar-high/array_spec.rb in sugar-high-0.2.10 vs spec/sugar-high/array_spec.rb in sugar-high-0.2.11

- old
+ new

@@ -14,7 +14,20 @@ it "should translate nested array of numbers and strings into strings only array" do [['blip', [3, :hello]]].to_strings.should == ['blip', 'hello'] end end + + describe '#to_strings' do + it "should translate nested array of numbers and strings into symbols only array, excluding numbers" do + [1, 'blip', [3, "hello"]].to_strings.should == ['blip', 'hello'] + end + end + + describe '#none?' do + it "should be none if no real values in array" do + [nil, nil].none?.should be_true + nil.none?.should be_true + end + end end end