Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
063c4a06
Commit
063c4a06
authored
Mar 19, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wall feature. removed duplicated test
parent
ba4f0abf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
63 deletions
+19
-63
features/steps/project/project_wall.rb
features/steps/project/project_wall.rb
+18
-0
features/steps/shared/note.rb
features/steps/shared/note.rb
+0
-21
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+1
-1
spec/features/notes_on_wall_spec.rb
spec/features/notes_on_wall_spec.rb
+0
-41
No files found.
features/steps/project/project_wall.rb
View file @
063c4a06
...
...
@@ -3,4 +3,22 @@ class ProjectWall < Spinach::FeatureSteps
include
SharedProject
include
SharedNote
include
SharedPaths
Given
'I write new comment "my special test message"'
do
within
(
".wall-note-form"
)
do
fill_in
"note[note]"
,
with:
"my special test message"
click_button
"Add Comment"
end
end
Then
'I should see project wall note "my special test message"'
do
page
.
should
have_content
"my special test message"
end
Then
'I should see comment "XML attached"'
do
within
(
".note"
)
do
page
.
should
have_content
(
"XML attached"
)
end
end
end
features/steps/shared/note.rb
View file @
063c4a06
...
...
@@ -96,25 +96,4 @@ module SharedNote
page
.
should
have_css
(
".js-note-preview-button"
,
visible:
true
)
end
end
# Wall
Given
'I write new comment "my special test message"'
do
within
(
".js-main-target-form"
)
do
fill_in
"note[note]"
,
with:
"my special test message"
click_button
"Add Comment"
end
end
Then
'I should see project wall note "my special test message"'
do
page
.
should
have_content
"my special test message"
end
Then
'I should see comment "XML attached"'
do
within
(
".note"
)
do
page
.
should
have_content
(
"XML attached"
)
end
end
end
features/steps/shared/paths.rb
View file @
063c4a06
...
...
@@ -256,7 +256,7 @@ module SharedPaths
end
Then
'I visit project "Shop" wall page'
do
visit
wall_project
_path
(
project
)
visit
project_wall
_path
(
project
)
end
Given
'I visit project wiki page'
do
...
...
spec/features/notes_on_wall_spec.rb
deleted
100644 → 0
View file @
ba4f0abf
require
'spec_helper'
describe
"On the project wall"
,
js:
true
do
let!
(
:project
)
{
create
(
:project
)
}
before
do
login_as
:user
project
.
team
<<
[
@user
,
:master
]
visit
project_wall_path
(
project
)
end
subject
{
page
}
describe
"the note form"
do
it
{
should
have_css
(
".wall-note-form"
,
visible:
true
,
count:
1
)
}
it
{
find
(
".wall-note-form input[type=submit]"
).
value
.
should
==
"Add Comment"
}
it
{
within
(
".wall-note-form"
)
{
should
have_unchecked_field
(
"Notify team via email"
)
}
}
describe
"with text"
do
before
do
within
(
".wall-note-form"
)
do
fill_in
"note[note]"
,
with:
"This is awesome"
end
end
it
{
within
(
".wall-note-form"
)
{
should_not
have_css
(
".js-comment-button[disabled]"
)
}
}
end
end
describe
"when posting a note"
do
before
do
within
(
".wall-note-form"
)
do
fill_in
"note[note]"
,
with:
"This is awsome!"
click_button
"Add Comment"
end
end
it
{
should
have_content
(
"This is awsome!"
)
}
it
{
within
(
".wall-note-form"
)
{
should
have_no_field
(
"note[note]"
,
with:
"This is awesome!"
)
}
}
end
end
Write
Preview
Markdown
is supported
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