Sha256: 6e280237387a3b688f1ff1c62aa70278b4799173e6213022360a1a7c96deff49

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'
require 'helpers/trees'
require 'tdiff/unordered'

describe TDiff::Unordered do
  include Helpers::Trees

  it "should include TDiff when included" do
    base = Class.new do
      include TDiff::Unordered
    end

    base.should include(TDiff)
  end

  it_should_behave_like 'TDiff', :tdiff_unordered

  it "should not detect when the order of children has changed" do
    changes = @tree.tdiff_unordered(@changed_order).select do |change,node|
      change != ' '
    end

    changes.should be_empty
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tdiff-0.3.2 spec/unordered_spec.rb
tdiff-0.3.1 spec/unordered_spec.rb
tdiff-0.3.0 spec/unordered_spec.rb
tdiff-0.2.0 spec/unordered_spec.rb