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.4.0 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.3.0 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.2.1 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.2.0 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.5 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.4 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.3 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.2 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.1 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.1.0 spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.5 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.4 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
classiccms-0.7.3 vendor/bundle/gems/dragonfly-0.9.12/spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.12 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.11 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.10 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.9 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.8 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.7 spec/dragonfly/core_ext/array_spec.rb
dragonfly-1.0.6 spec/dragonfly/core_ext/array_spec.rb