aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/shared/tree_manager_shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/tree_manager_shared.rb')
-rw-r--r--spec/support/shared/tree_manager_shared.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/support/shared/tree_manager_shared.rb b/spec/support/shared/tree_manager_shared.rb
new file mode 100644
index 0000000000..48b561e1fb
--- /dev/null
+++ b/spec/support/shared/tree_manager_shared.rb
@@ -0,0 +1,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