summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 14:58:58 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 14:58:58 +0200
commit063c4a069c1de3ee70cc500906121367b94a7886 (patch)
tree76a34fb2ca520f144180af6cefa141575da7059e /features
parentba4f0abf47940f27160166500979f6bcbd797d45 (diff)
downloadgitlab-ce-063c4a069c1de3ee70cc500906121367b94a7886.tar.gz
fix wall feature. removed duplicated test
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/project_wall.rb18
-rw-r--r--features/steps/shared/note.rb21
-rw-r--r--features/steps/shared/paths.rb2
3 files changed, 19 insertions, 22 deletions
diff --git a/features/steps/project/project_wall.rb b/features/steps/project/project_wall.rb
index ba9d3533b2c..a35569294a7 100644
--- a/features/steps/project/project_wall.rb
+++ b/features/steps/project/project_wall.rb
@@ -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
diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb
index 5dcc75f9165..299cebe583f 100644
--- a/features/steps/shared/note.rb
+++ b/features/steps/shared/note.rb
@@ -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
diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb
index 21f0d7867d0..1af8b478155 100644
--- a/features/steps/shared/paths.rb
+++ b/features/steps/shared/paths.rb
@@ -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