Sha256: 09aa73e1c8a5e440ce8d8f53ad17ce7d31b8a709ed6eef0c1ef4611666a18dca

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'

describe Sufia::GenericFile::Characterization, :type => :model 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

5 entries across 5 versions & 1 rubygems

Version Path
sufia-5.0.0 spec/models/characterization_spec.rb
sufia-5.0.0.rc1 spec/models/characterization_spec.rb
sufia-4.3.1 spec/models/characterization_spec.rb
sufia-4.2.0 spec/models/characterization_spec.rb
sufia-4.1.0 spec/models/characterization_spec.rb