Sha256: 2cdb77032bca05841d81cd639d9275e8fb7f012c4f21fb31ee9d4600885c8ac4

Contents?: true

Size: 454 Bytes

Versions: 87

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe Array do
  
  describe "to_dragonfly_unique_s" do
    it "should concatenate the to_s's of each of the elements" do
      [:a, true, 2, 5.2, "hello"].to_dragonfly_unique_s.should == 'atrue25.2hello'
    end
    
    it "should nest arrays" do
      [:a, [:b, :c], :d].to_dragonfly_unique_s.should == 'abcd'
    end
    
    it "should be empty if empty" do
      [].to_dragonfly_unique_s.should == ''
    end
  end
  
end

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
dragonfly-1.0.5 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.4 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.3 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.2 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.1 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0 spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.2 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.1 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.0 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
dragonfly-0.9.15 spec/dragonfly/core_ext/array_spec.rb
dragonfly-0.8.6 spec/dragonfly/core_ext/array_spec.rb
dragonfly-0.9.14 spec/dragonfly/core_ext/array_spec.rb
dragonfly-0.9.13 spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.9 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.8 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.7 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.6 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.5 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.4 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.6.3 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb