require'spec_helper'describe'User deletes a snippet'dolet(:project){create(:project)}let!(:snippet){create(:project_snippet,project: project,author: user)}let(:user){create(:user)}beforedoproject.add_master(user)sign_in(user)visit(project_snippet_path(project,snippet))endit'deletes a snippet'dofirst(:link,'Delete').clickexpect(page).not_tohave_content(snippet.title)endend