Sha256: 6e5714193b9b21e15de8676bcbb778d0acced04e424f4eec68c958dd5ac80f62

Contents?: true

Size: 597 Bytes

Versions: 22

Compression:

Stored size: 597 Bytes

Contents

require File.join( File.dirname(__FILE__), '../lib/blackbook.rb' )
require File.join( File.dirname(__FILE__), 'test_helper.rb' )
require 'test/unit'
require 'mocha'

class TestBlackbookImporterBase < Test::Unit::TestCase

  include TestHelper

  def test_service_name
    assert_equal "Base", Blackbook::Importer::Base.new.service_name
  end

  def test_import
    importer = Blackbook::Importer::Base.new
    importer.expects(:fetch_contacts!)
    options = {:foo => 'bar'}
    assert_nothing_raised do
      importer.import(options)
    end
    assert_equal options, importer.options
  end

end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
alexjp-blackbook_csv-1.0.5 test/test_blackbook_importer_base.rb
alexjp-blackbook_csv-3.0.1 test/test_blackbook_importer_base.rb
alexjp-blackbook_csv-3.0.2 test/test_blackbook_importer_base.rb
bcardarella-blackbook-1.0.10 test/test_blackbook_importer_base.rb
bcardarella-blackbook-1.0.11 test/test_blackbook_importer_base.rb
bcardarella-blackbook-1.0.7 test/test_blackbook_importer_base.rb
bcardarella-blackbook-1.0.8 test/test_blackbook_importer_base.rb
bcardarella-blackbook-1.0.9 test/test_blackbook_importer_base.rb
briancollins-blackbook-1.0.15 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.12 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.13 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.14 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.15 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.16 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.17 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.18 test/test_blackbook_importer_base.rb
rakutenusa-blackbook-1.0.19 test/test_blackbook_importer_base.rb
blackbook-1.0.0 test/test_blackbook_importer_base.rb
blackbook-1.0.3 test/test_blackbook_importer_base.rb
blackbook-1.0.2 test/test_blackbook_importer_base.rb