Sha256: 0b4543efcd10604f0f9696df67d8961693fb8504ddc3383f8b1e8bb909181c51

Contents?: true

Size: 367 Bytes

Versions: 11

Compression:

Stored size: 367 Bytes

Contents

RSpec.shared_examples "a fixity checkable object" do

  let(:object) { described_class.new }

  describe "fixity check" do
    before do
      object.thumbnail.content = '1234567890'
      object.save(validate: false)
    end
    it "should be able to perform a fixity check" do
      expect(Ddr::Actions::FixityCheck.execute(object)).to_not be_nil
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ddr-models-3.0.0.beta.10 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.9 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.8 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.7 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.6 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.4 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.3 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.2 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.beta.1 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.alpha.4 spec/support/shared_examples_for_fixity_checkable_spec.rb
ddr-models-3.0.0.alpha.3 spec/support/shared_examples_for_fixity_checkable_spec.rb