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

describe Castronaut::Models::LoginTicket do

  describe "generating a new one" do
    
    it "must be given a client host" do
      Castronaut::Models::LoginTicket.generate_from("client host").should_not be_nil
    end
    
  end

end<commit_msg>Adding example of ar test<commit_after>require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec_helper'))

describe Castronaut::Models::LoginTicket do

  describe "generating from a client hostname" do
   
    it "initializes a new Login Ticket with given client hostname" do
      Castronaut::Models::LoginTicket.expects(:new).with(:client_host => 'ch').returns(stub_everything)
      Castronaut::Models::LoginTicket.generate_from('ch')
    end
    
  end

end
{'fraction_non_alphanumeric': 0.12515042117930206, 'fraction_numerical': 0.0, 'mean_word_length': 4.509933774834437, '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': '3389974', 'n_tokens_mistral': 271, 'n_tokens_neox': 260, 'n_words': 59}