files_controller_spec.rb revision db149239590d2a39d399f12cd01609b190ea4763
require 'spec_helper'
describe 'iri ontology route' do
let!(:dist_ontology){ create :heterogeneous_ontology }
before do
@repository_file = 'repository_file'
end
after do
end
it { should respond_with :redirect }
end
end
before do
@repository_file = 'repository_file'
end
after do
end
it { should respond_with :success }
it { should render_template :show }
end
before { get :new, repository_id: repository.to_param }
it { should respond_with :success }
end
it { should respond_with :success }
end
before {
}
}
it { should respond_with :redirect }
end
end
before do
end
before do
content: "changed"
end
it { should respond_with :found }
end
end
end
before do
content: "changed"
end
it { should respond_with :success }
end
end
end
end
before do
content: "changed"
end
it { should respond_with :found }
end
end
end
pending "this should be another controller action"
end
end
end
end
before { get :new, repository_id: repository.to_param }
it { should respond_with :redirect }
end
it { should respond_with :redirect }
end
before {
}
}
it { should respond_with :redirect }
end
end
end
end
end