Sha256: fe89296c3aa40af2cc19305cb91323a360650f441e30e48facefe3c195da53db

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require 'spec_helper'

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

      contains 'content', class_name: 'FileContentDatastream'
      attr_accessor :title, :creator
    end
  end

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

  subject { TestClass.new }

  it "does 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

6 entries across 6 versions & 1 rubygems

Version Path
sufia-6.7.0 spec/models/characterization_spec.rb
sufia-6.6.1 spec/models/characterization_spec.rb
sufia-6.6.0 spec/models/characterization_spec.rb
sufia-6.5.0 spec/models/characterization_spec.rb
sufia-6.4.0 spec/models/characterization_spec.rb
sufia-6.3.0 spec/models/characterization_spec.rb