- taglist_v3 = create_list(:old_relation_tag, 3, :old_relation => relations(:relation_with_versions_v3))
- taglist_v4 = create_list(:old_relation_tag, 2, :old_relation => relations(:relation_with_versions_v4))
-
- relation = relations(:relation_with_versions_v1)
- tags = OldRelation.find(relation.id).old_tags.order(:k)
+ old_relation_v1 = create(:old_relation, :version => 1)
+ old_relation_v2 = create(:old_relation, :current_relation => old_relation_v1.current_relation, :version => 2)
+ old_relation_v3 = create(:old_relation, :current_relation => old_relation_v1.current_relation, :version => 3)
+ old_relation_v4 = create(:old_relation, :current_relation => old_relation_v1.current_relation, :version => 4)
+ taglist_v3 = create_list(:old_relation_tag, 3, :old_relation => old_relation_v3)
+ taglist_v4 = create_list(:old_relation_tag, 2, :old_relation => old_relation_v4)
+
+ tags = OldRelation.find(old_relation_v1.id).old_tags.order(:k)