Sha256: ad99b513aca771079c1f287f50ae75f541b66f076c7d65db01cc7628ea0a214e

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

require 'spec_helper'

RSpec.shared_examples "trackable submission" do
  describe "callbacks for response" do
    it "create response on trackable create" do
      expect(Tasks::Taskables::Taskable::Response.count).to eq(1)
    end

    it "destroy response on trackable destroy" do
      subject.destroy
      expect(Tasks::Taskables::Taskable::Response.count).to eq(0)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-0.0.1 spec/support/trackable_submission_spec.rb