<commit_before>require File.dirname(__FILE__) + '/../../../spec_helper'
require 'net/ftp'

describe "Net::FTP#welcome" do
  it "needs to be reviewed for spec completeness"
end<commit_msg>Added specs for Net::FTP#welcome.<commit_after>require File.dirname(__FILE__) + '/../../../spec_helper'
require 'net/ftp'

describe "Net::FTP#welcome" do
  before(:each) do
    @socket = mock("Socket")
    @socket.stub!(:write)
    
    @ftp = Net::FTP.new
    @ftp.instance_variable_set(:@sock, @socket)
  end
  
  it "returns the server's welcome message" do
    @socket.should_receive(:readline).and_return("230 User logged in, proceed.")
    
    @ftp.welcome.should be_nil
    @ftp.login
    @ftp.welcome.should == "230 User logged in, proceed.\n"
  end
end
{'fraction_non_alphanumeric': 0.157543391188251, 'fraction_numerical': 0.00801068090787717, 'mean_word_length': 3.6875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7131118', 'n_tokens_mistral': 269, 'n_tokens_neox': 251, 'n_words': 60}