Sha256: e8afeaaeca1459c2fe1e90b6413c2feb605a8a369cb00daf8495bb45b49975dd

Contents?: true

Size: 261 Bytes

Versions: 135

Compression:

Stored size: 261 Bytes

Contents

describe :string_to_a, :shared => true do
  it "returns an empty array for empty strings" do
    "".send(@method).should == []
  end

  it "returns an array containing the string for non-empty strings" do
    "hello".send(@method).should == ["hello"]
  end
end

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/string/shared/to_a.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/string/shared/to_a.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/string/shared/to_a.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/string/shared/to_a.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/string/shared/to_a.rb