Sha256: fff06a96fb6292646c622df26cca088158bd4527a9f123c8067fb5e48555373f

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Hydra::ModelMixins::Migratable do
  before :all do
    class TestClass < ActiveFedora::Base
      include Hydra::ModelMixins::Migratable
    end
  end

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

  subject {TestClass.new}

  it "should have a migrationInfo datastream" do
    subject.datastreams['migrationInfo'].should be_a(Hydra::Datastream::MigrationInfo)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hydra-migrate-0.3.0 spec/unit/migratable_spec.rb
hydra-migrate-0.2.1 spec/unit/migratable_spec.rb
hydra-migrate-0.2.0 spec/unit/migratable_spec.rb
hydra-migrate-0.1.0 spec/unit/migratable_spec.rb
hydra-migrate-0.0.1 spec/unit/migratable_spec.rb