Skip to content

Instantly share code, notes, and snippets.

@alieseparker
Created September 26, 2014 22:27
Show Gist options
  • Save alieseparker/a7e660d24cb6a146e1fe to your computer and use it in GitHub Desktop.
Save alieseparker/a7e660d24cb6a146e1fe to your computer and use it in GitHub Desktop.
require 'test_helper'
feature 'Deleting a Project' do
scenario 'Project is deleted with a click' do
visit projects_path
page.find("div#project_nav_project_1").click_on 'Destroy'
page.text.must_include 'Project was successfully deleted.'
page.wont_have_content 'Code Fellows Portfolio'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment