diff --git a/features/steps/project/project_wall.rb b/features/steps/project/project_wall.rb index a35569294a7..7c61580eb2c 100644 --- a/features/steps/project/project_wall.rb +++ b/features/steps/project/project_wall.rb @@ -15,10 +15,4 @@ class ProjectWall < Spinach::FeatureSteps 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 299cebe583f..e0ff52a7252 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -96,4 +96,10 @@ module SharedNote page.should have_css(".js-note-preview-button", visible: true) end end + + Then 'I should see comment "XML attached"' do + within(".note") do + page.should have_content("XML attached") + end + end end