spec/unordered_spec.rb in tdiff-0.3.3 vs spec/unordered_spec.rb in tdiff-0.3.4
- old
+ new
@@ -9,18 +9,18 @@
it "should include TDiff when included" do
base = Class.new do
include TDiff::Unordered
end
- base.should include(TDiff)
+ expect(base).to 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
+ expect(changes).to be_empty
end
end