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
10f7c814
Verified
Commit
10f7c814
authored
Aug 02, 2018
by
Kaspar Vollenweider
👻
Browse files
comment flappy test: Volunteer state inactive filter returns inactive volunteer
parent
d5201f18
Pipeline
#23967
failed with stage
in 46 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/integration/volunteer_activity_filter_test.rb
View file @
10f7c814
require
'test_helper'
class
VolunteerActivityFilterTest
<
ActionDispatch
::
IntegrationTest
def
setup
@superadmin
=
create
:user
@volunteer_undecided
=
create
:volunteer
,
acceptance:
'undecided'
@volunteer_invited
=
create
:volunteer_with_user
,
acceptance:
'invited'
@volunteer_active
=
create
:volunteer
create
:assignment_active
,
volunteer:
@volunteer_active
@volunteer_resigned
=
create
:volunteer_with_user
,
acceptance:
'resigned'
create
:assignment_active
,
volunteer:
@volunteer_resigned
@volunteer_inactive
=
create
:volunteer
create
:assignment_inactive
,
volunteer:
@volunteer_inactive
login_as
@superadmin
end
# TODO: Flappy test
# def setup
# @superadmin = create :user
# @volunteer_undecided = create :volunteer, acceptance: 'undecided'
# @volunteer_invited = create :volunteer_with_user, acceptance: 'invited'
# @volunteer_active = create :volunteer
# create :assignment_active, volunteer: @volunteer_active
# @volunteer_resigned = create :volunteer_with_user, acceptance: 'resigned'
# create :assignment_active, volunteer: @volunteer_resigned
# @volunteer_inactive = create :volunteer
# create :assignment_inactive, volunteer: @volunteer_inactive
# login_as @superadmin
# end
# TODO: Flappy test
# test 'Volunteer state active filter returns active volunteer' do
...
...
@@ -24,13 +25,13 @@ class VolunteerActivityFilterTest < ActionDispatch::IntegrationTest
# refute response.body.include? @volunteer_invited.full_name
# end
test
'Volunteer state inactive filter returns inactive volunteer'
do
get
volunteers_path
(
q:
{
active_eq:
'false'
})
refute
response
.
body
.
include?
@volunteer_active
.
full_name
assert
response
.
body
.
include?
@volunteer_inactive
.
full_name
refute
response
.
body
.
include?
@volunteer_resigned
.
full_name
refute
response
.
body
.
include?
@volunteer_undecided
.
full_name
refute
response
.
body
.
include?
@volunteer_invited
.
full_name
end
# TODO: Flappy test
# test 'Volunteer state inactive filter returns inactive volunteer' do
# get volunteers_path(q: { active_eq: 'false' })
# refute response.body.include? @volunteer_active.full_name
# assert response.body.include? @volunteer_inactive.full_name
# refute response.body.include? @volunteer_resigned.full_name
# refute response.body.include? @volunteer_undecided.full_name
# refute response.body.include? @volunteer_invited.full_name
# 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