Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
0d6fc379
Commit
0d6fc379
authored
Aug 2, 2023
by
Taico Aerts
Browse files
Options
Downloads
Patches
Plain Diff
Fix creation tests
parent
fdd19237
No related branches found
No related tags found
2 merge requests
!51
Upgrade to latest qpixel
,
!50
Update to latest codidact changes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/system/post_test.rb
+9
-1
9 additions, 1 deletion
test/system/post_test.rb
with
9 additions
and
1 deletion
test/system/post_test.rb
+
9
−
1
View file @
0d6fc379
require
'application_system_test_case'
class
PostTest
<
ApplicationSystemTestCase
# -------------------------------------------------------
# Create
# -------------------------------------------------------
test
'Not-signed in user cannot create a post'
do
visit
root_url
click_on
'Create Post'
...
...
@@ -18,7 +22,11 @@ class PostTest < ApplicationSystemTestCase
'Does that actually work?'
fill_in
'Summarize your post with a title:'
,
with:
'Can a signed-in user create a post?'
post_form_select_tag
tags
(
:faq
).
name
click_on
"Save Post in
#{
category
.
name
}
a"
# Check that the post is actually created
assert_difference
'Post.count'
do
click_on
"Save Post in
#{
category
.
name
}
"
end
end
# TODO: Post validations
...
...
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