<commit_before>require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))

describe "Yogo::Project" do
  before(:all) do
    
  end
  
  describe "class" do
    it "should be a datamapper model" do
      Yogo::Project.should be_a_kind_of(DataMapper::Model)
    end
    
    it "should have a default_data_repository_name" do
      Yogo::Project.should respond_to(:default_data_repository_name)
    end
    
    describe "default_data_repository_name" do
      it "should be a symbol" do
        Yogo::Project.default_data_repository_name.should be_a_kind_of(Symbol)
      end
      
      it "should initially be :project_data" do
        repo_name = Yogo::Project.default_data_repository_name
        expected = :project_data
      end
    end
  end
  
end<commit_msg>Additional specs for Yogo::Project<commit_after>require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))

describe "Yogo::Project" do
  before(:all) do
    
  end
  
  describe "class" do
    it "should be a datamapper model" do
      Yogo::Project.should be_a_kind_of(DataMapper::Model)
    end
    
    it "should have a default_data_repository_name" do
      Yogo::Project.should respond_to(:default_data_repository_name)
    end
    
    describe "default_data_repository_name" do
      it "should be a symbol" do
        Yogo::Project.default_data_repository_name.should be_a_kind_of(Symbol)
      end
      
      it "should initially be :project_data" do
        repo_name = Yogo::Project.default_data_repository_name
        expected = :project_data
      end
    end
  end
  
  describe "creation" do
    it "should require a name"
    it "should not require a description"
  end
  
  describe "instance" do
    before(:each) do
      @project = Yogo::Project.create(:name => "A Test Project")
    end
    
    after(:each) do
      @project.destroy
    end
    
    it "should allow name to be changed" do
      new_name = "Renamed Project"
      @project.name = new_name
      @project.should be_valid
      @project.save.should be_true
      @project.name.should == new_name
    end
    
    it "should allow description to be changed" do
      new_description = "This is a simply a test project."
      @project.description = new_description
      @project.should be_valid
      @project.save.should be_true
      @project.description.should == new_description
    end
    
    it "should have a data_repository" do
      @project.should respond_to(:data_repository)
    end
    
    describe "data_repository" do
      it "should be a datamapper respository" do
        @project.data_repository.should be_a_kind_of(DataMapper::Repository)
      end
    end
    
    it "should have collections"
    describe "collections" do
      it "should create a collection"
      it "should return a list of collections"
    end
  end
  
end
{'fraction_non_alphanumeric': 0.07799930045470445, 'fraction_numerical': 0.0, 'mean_word_length': 2.808255659121172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1174593', 'n_tokens_mistral': 878, 'n_tokens_neox': 869, 'n_words': 235}