Last active
August 18, 2017 09:32
-
-
Save Evanto/208bea64dcd7b3b62dd20a60c8c454bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe AttachmentsController, type: :controller do | |
sign_in_user | |
describe 'DELETE #destroy' do | |
let!(:answer) { create(:answer, question: question, user: @user) } | |
let!(:question) { create(:question) } | |
let!(:answer2) { create(:answer, question: question) } | |
context 'answer of author' do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment