Skip to content
Snippets Groups Projects
Commit 609768e7 authored by Clarissa's avatar Clarissa
Browse files

#218: Merge problems

parent 22498dad
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,11 @@ resource 'Statistics' do
let(:learning_objects) { LearningObject.all }
get '/v1/statistics' do
before do
create(:download, user: @user, downloadable: learning_objects.first)
end
example 'Showing plataform statistics' do
do_request
expect(status).to eq(200)
......
FactoryGirl.define do
factory :learning_object, aliases: [:complainable, :reviewable, :stageable, :subjectable, :likeable, :collectionable, :bookmarkable] do
factory :learning_object, aliases: [:complainable, :downloadable, :reviewable, :stageable, :subjectable, :likeable, :collectionable, :bookmarkable] do
sequence(:name) { |i| "LearningObject #{i}" }
sequence(:id_dspace) { |i| i }
publisher
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment