summaryrefslogtreecommitdiff
path: root/features/steps/shared/note.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-10 08:35:03 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-10 08:35:03 -0700
commit79eb5ab396690c613ea6e13c3c941ba1fa80f217 (patch)
treefab5ebc2f33214da4b44d2dd172f4887f2b0a6f8 /features/steps/shared/note.rb
parentef4e9c24d3dc870eb194591522dda6ec8dde7192 (diff)
downloadgitlab-ce-79eb5ab396690c613ea6e13c3c941ba1fa80f217.tar.gz
refactor feature steps
Diffstat (limited to 'features/steps/shared/note.rb')
-rw-r--r--features/steps/shared/note.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb
new file mode 100644
index 00000000000..923e69b6b07
--- /dev/null
+++ b/features/steps/shared/note.rb
@@ -0,0 +1,21 @@
+module SharedNote
+ include Spinach::DSL
+
+ Given 'I leave a comment like "XML attached"' do
+ fill_in "note_note", :with => "XML attached"
+ click_button "Add Comment"
+ end
+
+ Then 'I should see comment "XML attached"' do
+ page.should have_content "XML attached"
+ end
+
+ Given 'I write new comment "my special test message"' do
+ fill_in "note_note", :with => "my special test message"
+ click_button "Add Comment"
+ end
+
+ Then 'I should see project wall note "my special test message"' do
+ page.should have_content "my special test message"
+ end
+end