diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:38:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:38:07 -0700 |
commit | 3283adc6d0edcc873256c78842f8ddd233577d08 (patch) | |
tree | a92d64c67ea987f65a465dbac97195cde4fbc820 /spec/support/shared | |
parent | 6451188abf647d6aa855d22db8d2d62a2b2c4542 (diff) | |
parent | 06c92a8557f5171704a121d0f4412e4c1e9a9c2b (diff) | |
download | rails-3283adc6d0edcc873256c78842f8ddd233577d08.tar.gz rails-3283adc6d0edcc873256c78842f8ddd233577d08.tar.bz2 rails-3283adc6d0edcc873256c78842f8ddd233577d08.zip |
Merge branch 'v1' of github.com:flavorjones/arel into v1
* 'v1' of github.com:flavorjones/arel:
DeleteStatement deep copy
cleaning up describe/it block names
SelectCore deep copies attributes
Statement nodes deep-copy AST nodes
TreeManager classes deep-copy their statements.
Diffstat (limited to 'spec/support/shared')
-rw-r--r-- | spec/support/shared/tree_manager_shared.rb | 9 |
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 |