b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornbergerrequire 'spec_helper'
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger get :index, :ontology_id => ontology.to_param, :repository_id => repository.to_param
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger it{ should render_template 'comments/index' }
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger comment = create :comment, :commentable => ontology
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger get :index, :ontology_id => ontology.to_param, :repository_id => repository.to_param
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger it{ should render_template 'comments/index' }
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger get :index, :ontology_id => ontology.to_param, :repository_id => repository.to_param
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger it{ should render_template 'comments/index' }
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger comment = create :comment, :commentable => ontology
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger get :index, :ontology_id => ontology.to_param, :repository_id => repository.to_param
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger it{ should render_template 'comments/index' }
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger comment = create :comment, :commentable => ontology, :user => user
b8a8f5a9b535f39bf9f1b00ec2983bd610bb2373Julian Kornberger xhr :delete, :destroy, :ontology_id => ontology.to_param, :repository_id => repository.to_param, :id => comment.id