spec/sugar-high/array_spec.rb in sugar-high-0.2.7 vs spec/sugar-high/array_spec.rb in sugar-high-0.2.8

- old
+ new

@@ -7,10 +7,14 @@ it "should translate nested array of numbers and strings into symbols only array, excluding numbers" do [1, 'blip', [3, "hello"]].to_symbols.should == [:blip, :hello] end it "should translate nested array of numbers and strings into symbols only array, including numbers" do - [1, 'blip', [3, "hello"]].to_symbols(:num).should == [:_1, :blip, :_3, :hello] + [[1, 'blip', [3, "hello"]]].to_symbols(:num).should == [:_1, :blip, :_3, :hello] + end + + it "should translate nested array of numbers and strings into strings only array" do + [['blip', [3, :hello]]].to_strings.should == ['blip', 'hello'] end end end end