+ first_relation = create(:relation)
+ deleted_relation = create(:relation)
+ third_relation = create(:relation)
+
+ [first_relation, deleted_relation, third_relation].each do |relation|
+ create(:relation_tag, :relation => relation, :k => "test", :v => "yes")
+ end
+ create(:relation_tag, :relation => third_relation, :k => "name", :v => "Test Relation")
+
+ get :search_relations, :params => { :type => "test" }