spec/extensions/string_spec.rb in iron-extensions-1.1.5 vs spec/extensions/string_spec.rb in iron-extensions-1.2.0

- old
+ new

@@ -76,7 +76,13 @@ end it 'should support natural ordering' do ['a0', 'a90', 'a10', 'a9'].sort_by {|a| a.natural_order}.should == ['a0', 'a9', 'a10', 'a90'] end + + it 'should be appropriately blank' do + [nil, '', ' ', "\t", "\n"].each do |test| + test.should be_blank + end + end end