Sha256: e3bfe02331caac4297526c5ea1b6375a4b63d1a5985edebb1dad99096cf89993

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'

module Tasuku
  describe Taskables::Taskable::Response do
    let(:response)      { create :response, submittable: text_response }
    let(:text_response) { create :text_response, request: text_request }
    let(:text_request)  { create :text_request }
    let(:task)          { create :task, taskable: text_request }

    describe '.before_destroy' do
      before { response.destroy }

      it 'deletes its submittable' do
        expect(text_response).to be_destroyed
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-1.1.0 spec/models/tasuku/taskables/taskable/response_spec.rb