Sha256: 9f3fafe50761f354636802234d8057a4c15b222efa998a693e45f31672368f20

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 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
    [1,2,3].should_not be_equivalent([2,3])
  end
  it "should know if elements are not equivalent to a larger set including those elements" do
    [1,2,3].should_not be_equivalent([1,2,3,4])
  end
  it "should know it is equivalent if the same order" do
    [1,2,3].should be_equivalent([1,2,3])
  end
  it "should know it is equivalent if the different orders" do
    [1,2,3].should be_equivalent([2,1,3])
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
taza-0.9.2.1 spec/taza/array_spec.rb
taza-0.9.2.0 spec/taza/array_spec.rb
taza-0.9.1.2 spec/array_spec.rb
taza-0.9.1.1 spec/array_spec.rb
taza-0.9.1 spec/array_spec.rb
taza-0.9.0 spec/array_spec.rb