Sha256: 6dd160b0dfeee79e322a53f52eaa00c4a42e89030f23c9cc3a9a0ba7b33b020a

Contents?: true

Size: 226 Bytes

Versions: 29

Compression:

Stored size: 226 Bytes

Contents

describe "String#to_a" do
  it "returns an empty array for empty strings" do
    "".to_a.should == []
  end

  it "returns an array containing the string for non-empty strings" do
    "hello".to_a.should == ["hello"]
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/string/to_a_spec.rb
opal-0.4.3 spec/rubyspec/core/string/to_a_spec.rb
opal-0.4.2 spec/rubyspec/core/string/to_a_spec.rb
opal-0.4.1 spec/rubyspec/core/string/to_a_spec.rb
opal-0.4.0 spec/rubyspec/core/string/to_a_spec.rb
opal-0.3.44 spec/rubyspec/core/string/to_a_spec.rb
opal-0.3.43 spec/rubyspec/core/string/to_a_spec.rb
opal-0.3.42 spec/core/string/to_a_spec.rb
opal-0.3.41 spec/core/string/to_a_spec.rb
opal-0.3.40 spec/core/string/to_a_spec.rb
opal-0.3.39 spec/core/string/to_a_spec.rb
opal-0.3.38 spec/core/string/to_a_spec.rb
opal-0.3.37 spec/core/string/to_a_spec.rb
opal-0.3.36 spec/core/string/to_a_spec.rb
opal-0.3.35 spec/core/string/to_a_spec.rb
opal-0.3.34 spec/core/string/to_a_spec.rb
opal-0.3.33 spec/core/string/to_a_spec.rb
opal-0.3.32 spec/core/string/to_a_spec.rb
opal-0.3.31 spec/core/string/to_a_spec.rb
opal-0.3.30 spec/core/string/to_a_spec.rb