fix wall feature. removed duplicated test
This commit is contained in:
parent
ba4f0abf47
commit
063c4a069c
4 changed files with 19 additions and 63 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue