Sha256: fc0d755491f1fd96e95096017fc4cf6b9f4956b668992120e0ccd5825606b16c

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

require 'test_helper'
require "test/unit"
require 'semantic'
require 'socialcrawler'

class CrawlewrTest < Test::Unit::TestCase

  def test_version
    s = SocialCrawler::VERSION
    v = Semantic::Version.new(s)
    assert_equal v.to_s, s
  end

  def test_1
    File.delete('/tmp/test_out.txt') if File.exists?('/tmp/test_out.txt')
    File.delete('/tmp/test_status.txt') if File.exists?('/tmp/test_status.txt')

    sc = SocialCrawler::SocialCrawler.new
    sc.crawl('test/test_url.txt', '/tmp/test_out.txt', '/tmp/test_status.txt')

    sc = SocialCrawler::SocialCrawler.new
    sc.crawl('test/test_url.txt', '/tmp/test_out.txt', '/tmp/test_status.txt')
   end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socialcrawler-0.0.2 test/test_crawler.rb