Sha256: eb89d7991fe061fe56165f1d9ba0ac17fcd3b590e8f3de731958bbdf0de4af0e

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'
require 'tdiff_examples'

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

1 entries across 1 versions & 1 rubygems

Version Path
tdiff-0.3.3 spec/unordered_spec.rb