Sha256: db342296ae1575bb7a6338d9ffe418a4cf9bc30c816195876f3e2c87d62c1c93

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

require File.dirname(__FILE__) + '/../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 == ['just', 'a', 'test']
    end
    
    it "should preserve escaped whitespace" do
      Array.parse('just a\ test').should == ['just', 'a test']
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commander-4.0.4 spec/core_ext/array_spec.rb
commander-4.0.3 spec/core_ext/array_spec.rb
commander-4.0.2 spec/core_ext/array_spec.rb
commander-4.0.1 spec/core_ext/array_spec.rb
commander-4.0.0 spec/core_ext/array_spec.rb