aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/shared/tree_manager_shared.rb
blob: 48b561e1fb9aa12c12d478590b74dbcffa9ec80c (plain) (blame)
1
2
3
4
5
6
7
8
9
shared_examples_for "TreeManager" do
  describe "clone" do
    it "clones the insert statement" do
      subject.instance_variable_get("@head").should_receive(:clone).and_return(:foo) # TODO: ick.
      dolly = subject.clone
      dolly.instance_variable_get("@head").should == :foo
    end
  end
end