Sha256: ca947c0a626757e5a22ad59a2cf7841b6d6b807a94af5c93773a8e82b1960df0

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

require 'spec_helper'

describe Array do
  
  describe "#parse" do
    it "should seperate a list of words into an array" do
      Array.parse('just a test').should eq(['just', 'a', 'test'])
    end
    
    it "should preserve escaped whitespace" do
      Array.parse('just a\ test').should eq(['just', 'a test'])
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commander-4.1.2 spec/core_ext/array_spec.rb
commander-4.1.1 spec/core_ext/array_spec.rb
commander-4.1.0 spec/core_ext/array_spec.rb
commander-4.0.7 spec/core_ext/array_spec.rb