Sha256: b66401d18b6f0de343e8339b6aabebc079e954187408bc85e8f2975e3ebb1ba5

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

require 'spec_helper'
require 'extensions/array'

describe 'Array Extensions' do
  it "should know if elements are not equivalent to a subset of those elements" do
    expect([1,2,3]).to_not be_equivalent [2,3]
  end
  it "should know if elements are not equivalent to a larger set including those elements" do
    expect([1,2,3]).to_not be_equivalent [1,2,3,4]
  end
  it "should know it is equivalent if the same order" do
    expect([1,2,3]).to be_equivalent [1,2,3]
  end
  it "should know it is equivalent if the different orders" do
    expect([1,2,3]).to be_equivalent [2,1,3]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taza-2.1.0 spec/taza/array_spec.rb
taza-2.0 spec/taza/array_spec.rb
taza-1.0 spec/taza/array_spec.rb