<commit_before>require 'spec_helper'

class Person
  include Cassandrb::Model

  column :name
  column :gender, :default => 'Female'
end

describe Cassandrb::Model do
  it "should set properties defined" do
    name = 'Joe'
    person = Person.new(:name => name)

    person.name.should == name
  end

  it "should set default value" do
    person = Person.new
    person.gender.should == 'Female'
  end
end
<commit_msg>Spec to define key manually<commit_after>require 'spec_helper'

class Person
  include Cassandrb::Model

  column :name
  column :gender, :default => 'Female'
end

describe Cassandrb::Model do
  it "should set properties defined" do
    name = 'Joe'
    person = Person.new(:name => name)

    person.name.should == name
  end

  it "should set default value" do
    person = Person.new
    person.gender.should == 'Female'
  end

  it "should let us define the key manually" do
    person = Person.new
    person.key= "1"
    person.key.should == "1"
  end
end

{'fraction_non_alphanumeric': 0.10183299389002037, 'fraction_numerical': 0.002036659877800407, 'mean_word_length': 3.2370689655172415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6915746', 'n_tokens_mistral': 325, 'n_tokens_neox': 305, 'n_words': 104}