Sha256: 00e1766d3c1a7e367a62cf928af97fd640f89890972529ffa453e2696e8e9e80

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

require 'spec_helper'

describe Mavenlink::Concerns::Indestructible do
  subject do
    Class.new do
      include Mavenlink::Concerns::Indestructible
    end
  end

  specify do
    expect { subject.send(:new).destroy }.to raise_error Mavenlink::RecordLockedError, /locked.*deleted/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mavenlink-0.0.1 spec/lib/mavenlink/concerns/indestructible_spec.rb