refactor feature steps

This commit is contained in:
Nihad Abbasov 2012-09-10 08:35:03 -07:00
parent ef4e9c24d3
commit 79eb5ab396
34 changed files with 270 additions and 376 deletions

View file

@ -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