Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
2f80a08f
Commit
2f80a08f
authored
Nov 20, 2018
by
Chrysanthi Lagodimou
Browse files
Review semester with multiple assignments intergration test
parent
8d231538
Pipeline
#31245
passed with stage
in 37 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/integration/review_semester_with_multiple_assignments_test.rb
0 → 100644
View file @
2f80a08f
require
'test_helper'
class
ReviewSemesterWithMultipleAssignmentsTest
<
ActionDispatch
::
IntegrationTest
def
setup
@volunteer
=
create
:volunteer
create
:assignment
,
volunteer:
@volunteer
,
period_start:
time_z
(
2017
,
12
,
2
)
create
:group_assignment
,
volunteer:
@volunteer
,
period_start:
time_z
(
2017
,
12
,
2
)
login_as
create
:user
end
test
'review semester should contain all missions'
do
params
=
{
semester_process:
{
kind:
'mail'
,
semester:
'2018, 1'
,
subject:
'subject'
,
body:
'body'
,
semester_process_volunteers_attributes:
{
0
=>
{
selected:
0
,
volunteer_id:
@volunteer
.
id
}
}
},
commit:
'Semester Prozess erfassen'
,
action:
'create'
,
semester:
'2018, 1'
}
assert_difference
'SemesterProcessVolunteer.count'
,
1
do
post
semester_processes_path
,
params:
params
end
assert_equal
SemesterProcessVolunteer
.
last
.
missions
.
count
,
2
end
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment