Sha256: ae0e63401fd8755ba909d089d966989debfa65838c154df47e8e1eb6bef60043

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

require 'spec_helper'

describe Array do
  subject { ["one", "two", "three", "one", ["two"]]}

  it { subject.flat_compact_uniq!.should eq ["one", "two", "three"] }
  it "modifies array in place" do
    test_subject = subject.flat_compact_uniq!
    test_subject.object_id.should eq subject.object_id
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trax_core-0.0.84 spec/trax/core/ext/array_spec.rb
trax_core-0.0.83 spec/trax/core/ext/array_spec.rb
trax_core-0.0.82 spec/trax/core/ext/array_spec.rb
trax_core-0.0.81 spec/trax/core/ext/array_spec.rb
trax_core-0.0.80 spec/trax/core/ext/array_spec.rb
trax_core-0.0.79 spec/trax/core/ext/array_spec.rb
trax_core-0.0.78 spec/trax/core/ext/array_spec.rb
trax_core-0.0.77 spec/trax/core/ext/array_spec.rb
trax_core-0.0.76 spec/trax/core/ext/array_spec.rb
trax_core-0.0.74 spec/trax/core/ext/array_spec.rb
trax_core-0.0.73 spec/trax/core/ext/array_spec.rb
trax_core-0.0.72 spec/trax/core/ext/array_spec.rb