<commit_before>require 'spec_helper'

describe Collection do

  before do
    @collection_pid = "collection:1"
    @collection = Collection.create(:pid => @collection_pid)
  end

  after do
    @collection.delete
  end

end<commit_msg>closes #3<commit_after>require 'spec_helper'

describe Collection do

  before do
    @collection_pid = "collection:1"
    @collection = Collection.create(:pid => @collection_pid)
  end

  after do
    @collection.delete
  end

  it "should have a DC datastream" do
    @collection.datastreams["DC"].should_not be_nil
  end

  it "should have a RELS-EXT datastream" do
    @collection.datastreams["RELS-EXT"].should_not be_nil
  end

  it "should be able to retrieve the item" do
    c = Collection.find(@collection_pid)
    c.pid.should eq(@collection_pid)
  end


end
{'fraction_non_alphanumeric': 0.09328358208955224, 'fraction_numerical': 0.0037313432835820895, 'mean_word_length': 3.735294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4203544', 'n_tokens_mistral': 270, 'n_tokens_neox': 256, 'n_words': 70}