Sha256: b26cb1ee6363838320b2664908c28be12177303ac6f88fb6f1f6fdec7964738d

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'

describe Sufia::GenericFile::Characterization do
  before do
    class TestClass < ActiveFedora::Base
      include Sufia::GenericFile::Characterization

      has_file_datastream 'content', type: FileContentDatastream
      attr_accessor :title, :creator
    end
  end

  after do
    Object.send(:remove_const, :TestClass)
  end

  subject { TestClass.new }

  it "should not depend on anything except a file datastream and some property accessors" do
    expect { subject.characterize }.to_not raise_error
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-4.0.1 spec/models/characterization_spec.rb
sufia-4.0.0 spec/models/characterization_spec.rb