refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
21
features/steps/shared/note.rb
Normal file
21
features/steps/shared/note.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue