Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
332e1547
Commit
332e1547
authored
8 years ago
by
Marcela Ribeiro de Oliveira
Browse files
Options
Downloads
Patches
Plain Diff
put in learning_object acceptance test
parent
9c792183
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/acceptance/learning_objects_spec.rb
+31
-0
31 additions, 0 deletions
spec/acceptance/learning_objects_spec.rb
with
31 additions
and
0 deletions
spec/acceptance/learning_objects_spec.rb
+
31
−
0
View file @
332e1547
...
...
@@ -53,6 +53,7 @@ resource 'Learning Objects' do
parameter
:language_id
,
'The id of a language'
parameter
:license_id
,
'The id of a license'
#TODO: add items of array
let
(
:author
)
{
Faker
::
Name
.
name
}
let
(
:name
)
{
Faker
::
Name
.
name
}
let
(
:description
)
{
Faker
::
Lorem
.
paragraph
}
...
...
@@ -72,6 +73,36 @@ resource 'Learning Objects' do
end
end
put
'/v1/learning_objects/:id'
do
include_context
"authenticate_user"
parameter
:author
,
'The author of a educational content'
parameter
:name
,
'The name of the learning object'
parameter
:description
,
'The description of educational content of the learning object'
parameter
:link
,
'Object link, when don’t have any attachments'
parameter
:software
,
'If some software is needed to run the object'
parameter
:tags
,
'Array with tags (by name)'
parameter
:subjects
,
'Array with subjects ids'
parameter
:educational_stages
,
'Array with educational stages ids'
parameter
:object_type_id
,
'The id of object type'
parameter
:language_id
,
'The id of a language'
parameter
:license_id
,
'The id of a license'
#TODO: add items of array
let
(
:id
)
{
@learning_object
.
id
}
let
(
:description
)
{
Faker
::
Lorem
.
paragraph
}
let
(
:raw_post
)
{
params
.
to_json
}
before
do
@learning_object
=
create
(
:learning_object
,
publisher:
@user
)
end
example
'Updating a learning_object draft'
do
do_request
expect
(
status
).
to
eq
(
200
)
end
end
post
'/v1/learning_objects/:id/like'
do
include_context
"authenticate_user"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment