I don't think you need to test the library, but if you have a method like
def file_names
files = []
Find.find(Dir.pwd){|file| files << file}
........
end
find,
it "should return a list of files within the specified directory" do
Find.stub!(:find).and_return(['file1', 'file2'])
@object.file_names
end
,
it "should return a list of files within the specified directory" do
Find.should_receive(:find).and_return(['file1', 'file2'])
@object.file_names
end