aboutsummaryrefslogtreecommitdiffstats
path: root/spec/relations/relation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/relations/relation_spec.rb')
-rw-r--r--spec/relations/relation_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/relations/relation_spec.rb b/spec/relations/relation_spec.rb
index db4b6b8775..5cef7d7b3d 100644
--- a/spec/relations/relation_spec.rb
+++ b/spec/relations/relation_spec.rb
@@ -48,6 +48,12 @@ describe Relation do
end
end
+ describe Relation, '#rename' do
+ it "manufactures a rename relation" do
+ @relation1.rename(@attribute1, :foo).should == RenameRelation.new(@relation1, @attribute1, :foo)
+ end
+ end
+
describe Relation, '#select' do
before do
@predicate = EqualityPredicate.new(@attribute1, @attribute2)