Sha256: 5bfbed68233bd23f8ea56e26d3c3c389208e047c01c2ad2fe3f45d33601f23e1
Contents?: true
Size: 612 Bytes
Versions: 7
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' require 'ostruct' describe Purl do let(:repo_object) { OpenStruct.new( { :repo_object_id => 9999, :pid => "ARCH-SEASIDE:464", :date_added => DateTime.new(2001,-11,-26,-20,-55,-54,'+7'), :date_modified => DateTime.new(2001,-11,-26,-20,-55,-54,'+7'), :information => "_TEST_" } ) } describe '.create_from_repo_object' do it 'should_create_data_in_purl_database' do Purl.create_from_repo_object(repo_object) result = Purl.first result.repo_object_id.should == repo_object.repo_object_id end end end
Version data entries
7 entries across 7 versions & 1 rubygems