From 63e9270f2091e8eb26eddd52ed72206ad7d81393 Mon Sep 17 00:00:00 2001 From: Clarissa <cdp13@inf.ufpr.br> Date: Wed, 12 Apr 2017 08:55:43 -0300 Subject: [PATCH] #218: Copying old descriptions --- spec/acceptance/activities_spec.rb | 5 ++++- spec/acceptance/bookmarks_spec.rb | 3 +++ spec/acceptance/collections_spec.rb | 2 ++ spec/acceptance/complaints_spec.rb | 2 ++ spec/acceptance/educational_stages_spec.rb | 2 ++ spec/acceptance/follows_spec.rb | 2 ++ spec/acceptance/institutions_spec.rb | 2 ++ spec/acceptance/languages_spec.rb | 2 ++ spec/acceptance/learning_objects_spec.rb | 2 ++ spec/acceptance/mime_types_spec.rb | 2 ++ spec/acceptance/object_types_spec.rb | 2 ++ spec/acceptance/reviews_spec.rb | 2 ++ spec/acceptance/searches_spec.rb | 2 ++ spec/acceptance/statistics_spec.rb | 3 +++ spec/acceptance/subjects_spec.rb | 2 ++ spec/acceptance/tags_spec.rb | 2 ++ spec/acceptance/users_spec.rb | 2 ++ 17 files changed, 38 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/activities_spec.rb b/spec/acceptance/activities_spec.rb index 4a98cc34..cb9193f8 100644 --- a/spec/acceptance/activities_spec.rb +++ b/spec/acceptance/activities_spec.rb @@ -2,6 +2,8 @@ require 'acceptance_helpers' require 'shared/contexts' resource 'Activities' do + + explanation "Users can see the activities of his followed collections and users." before { 12.times { create(:learning_object); create(:user) } } @@ -38,12 +40,13 @@ resource 'Activities' do include_context "authenticate_user" let(:id) { users.first.id } - + before do create(:follow, followable: users.first, user: @user) end example 'Showing activities from a specific user' do + explanation "This method shows all activities from the logged user." do_request expect(status).to eq(200) end diff --git a/spec/acceptance/bookmarks_spec.rb b/spec/acceptance/bookmarks_spec.rb index 48242aa7..dec74161 100644 --- a/spec/acceptance/bookmarks_spec.rb +++ b/spec/acceptance/bookmarks_spec.rb @@ -5,6 +5,9 @@ resource 'Bookmarks' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Bookmark is a relation between user and object called ‘Favoritos’, + which are educational contents or collections. Bookmarks do not have an index for itens." + before { 12.times { create(:learning_object) } } let(:bookmarks) { Bookmark.all } diff --git a/spec/acceptance/collections_spec.rb b/spec/acceptance/collections_spec.rb index 796d0ee4..f53cf13d 100644 --- a/spec/acceptance/collections_spec.rb +++ b/spec/acceptance/collections_spec.rb @@ -6,6 +6,8 @@ resource 'Collections' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Collection is a group of educational content or another collection, which an user can show, create, update and destroy." + before { 12.times { create(:collection, privacy: 'public' ); create(:learning_object) } } let(:collections) { Collection.all } diff --git a/spec/acceptance/complaints_spec.rb b/spec/acceptance/complaints_spec.rb index a2bf9d34..c3a1d9c5 100644 --- a/spec/acceptance/complaints_spec.rb +++ b/spec/acceptance/complaints_spec.rb @@ -4,6 +4,8 @@ resource 'Complaints' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "With complaint an user may report a learning object or collection with inappropriate content." + before { 12.times { create(:complaint) diff --git a/spec/acceptance/educational_stages_spec.rb b/spec/acceptance/educational_stages_spec.rb index 1f8c2c68..7c46f07e 100644 --- a/spec/acceptance/educational_stages_spec.rb +++ b/spec/acceptance/educational_stages_spec.rb @@ -4,6 +4,8 @@ resource 'Educational Stages' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Educational stages to digital resources, like Ensino Médio, Ensino Fundamental." + before { 12.times { create(:educational_stage); create(:learning_object) } } let(:educationalstages) { EducationalStage.all } diff --git a/spec/acceptance/follows_spec.rb b/spec/acceptance/follows_spec.rb index 9619f306..640b6fce 100644 --- a/spec/acceptance/follows_spec.rb +++ b/spec/acceptance/follows_spec.rb @@ -3,6 +3,8 @@ require 'shared/contexts' resource 'Follows' do + explanation "An User can follow a Collection or another User to see their Activities." + before { 12.times { create(:user) } } let(:users) { User.all } diff --git a/spec/acceptance/institutions_spec.rb b/spec/acceptance/institutions_spec.rb index f41b4355..986f6369 100644 --- a/spec/acceptance/institutions_spec.rb +++ b/spec/acceptance/institutions_spec.rb @@ -4,6 +4,8 @@ resource 'Institutions' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Institutions can be schools, universities, or any other institution." + before { 12.times { create(:institution) } } let(:institutions) { Institution.all } diff --git a/spec/acceptance/languages_spec.rb b/spec/acceptance/languages_spec.rb index b0112d59..e1a836b2 100644 --- a/spec/acceptance/languages_spec.rb +++ b/spec/acceptance/languages_spec.rb @@ -4,6 +4,8 @@ resource 'Languages' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Languages are a set of languages which the learning objects can belong to, like portuguese, english and etc." + let(:languages) { Language.all } get '/v1/languages' do diff --git a/spec/acceptance/learning_objects_spec.rb b/spec/acceptance/learning_objects_spec.rb index 06e8f90b..02bbc1c7 100644 --- a/spec/acceptance/learning_objects_spec.rb +++ b/spec/acceptance/learning_objects_spec.rb @@ -3,6 +3,8 @@ require 'shared/contexts' resource 'Learning Objects' do + explanation "Learning objects are educational contents (movie, odf, file, sound, etc) which an user can show, create, update and destroy." + before { 12.times { create(:learning_object) } } let(:learning_objects) { LearningObject.all } diff --git a/spec/acceptance/mime_types_spec.rb b/spec/acceptance/mime_types_spec.rb index 5ded524a..8be6e3c4 100644 --- a/spec/acceptance/mime_types_spec.rb +++ b/spec/acceptance/mime_types_spec.rb @@ -2,6 +2,8 @@ require 'acceptance_helpers' resource 'Mime Types' do + explanation "Mime Types are the types/extentions which an Object Type can have." + before { 12.times { create(:mime_type) } } let(:mime_types) { MimeType.all } diff --git a/spec/acceptance/object_types_spec.rb b/spec/acceptance/object_types_spec.rb index 8b3dd89d..b6577ce9 100644 --- a/spec/acceptance/object_types_spec.rb +++ b/spec/acceptance/object_types_spec.rb @@ -4,6 +4,8 @@ resource 'Object Type' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Object Types are the types of the objects." + before { 12.times { create(:mime_type) } } let(:object_types) { ObjectType.all } diff --git a/spec/acceptance/reviews_spec.rb b/spec/acceptance/reviews_spec.rb index a884496c..cc53d363 100644 --- a/spec/acceptance/reviews_spec.rb +++ b/spec/acceptance/reviews_spec.rb @@ -5,6 +5,8 @@ resource 'Reviews' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Review is a note for educational content or collections, made by users." + before { 12.times { create(:learning_object) } } let(:learning_objects) { LearningObject.all } diff --git a/spec/acceptance/searches_spec.rb b/spec/acceptance/searches_spec.rb index 180baa8a..08d7a250 100644 --- a/spec/acceptance/searches_spec.rb +++ b/spec/acceptance/searches_spec.rb @@ -2,6 +2,8 @@ require 'acceptance_helpers' resource 'Searches' do + explanation "Search is a query for Learning Objects, Collections or Users." + before { 12.times { create(:learning_object); LearningObject.reindex } } get '/v1/search' do diff --git a/spec/acceptance/statistics_spec.rb b/spec/acceptance/statistics_spec.rb index 9601ab17..0097f650 100644 --- a/spec/acceptance/statistics_spec.rb +++ b/spec/acceptance/statistics_spec.rb @@ -3,6 +3,9 @@ require 'shared/contexts' resource 'Statistics' do + explanation "Statistics about the system usage (total number of published learning objects, + number of learning objects published in a month and number of learning objects downloaded in a month)" + before { 12.times { create(:learning_object); create(:user) } } get '/v1/statistics' do diff --git a/spec/acceptance/subjects_spec.rb b/spec/acceptance/subjects_spec.rb index be0c95a0..40e257c0 100644 --- a/spec/acceptance/subjects_spec.rb +++ b/spec/acceptance/subjects_spec.rb @@ -4,6 +4,8 @@ resource 'Subjects' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "Subjects to digital resources, like Artes, Biologia." + before { 12.times { create(:subject); create(:learning_object) } } let(:subject) { Subject.all } diff --git a/spec/acceptance/tags_spec.rb b/spec/acceptance/tags_spec.rb index 7449f75a..96948d83 100644 --- a/spec/acceptance/tags_spec.rb +++ b/spec/acceptance/tags_spec.rb @@ -2,6 +2,8 @@ require 'acceptance_helpers' resource 'Tags' do + explanation "Tags to digital resources of free and personal assignment." + before { 12.times { create(:learning_object) } } let(:learning_objects) { LearningObject.all } diff --git a/spec/acceptance/users_spec.rb b/spec/acceptance/users_spec.rb index 60ff1d3a..ae60ec16 100644 --- a/spec/acceptance/users_spec.rb +++ b/spec/acceptance/users_spec.rb @@ -4,6 +4,8 @@ resource 'Users' do header 'Accept', 'application/json' header 'Content-Type', 'application/json' + explanation "User represents the teacher and students in the system." + before { 12.times { create(:user) } } let(:users) { User.all } -- GitLab