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