Sha256: 94de4cc0bda117656c821abefda1189693313ff8744ea3962268132c7aee5df8

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tasuku-1.1.0 spec/support/trackable_submission_spec.rb
tasuku-1.0.1 spec/support/trackable_submission_spec.rb
tasuku-0.1.1 spec/support/trackable_submission_spec.rb
tasuku-0.1.0 spec/support/trackable_submission_spec.rb