Sha256: cf9a8b6574e698da2fbedc4fdbf75eeec2f31a226bd0e4c022ed97337742e6c3

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

require 'test_helper'
require 'import'
require 'doit'
require 'my'

describe Import do

  it "init fails with empty" do
    assert_raises(Errno::EISDIR) { Import.init('') }
  end

  it "init" do
    Import.init('hello')
  end

  it "list" do
    Import.init('hello')
    assert_match /\/\.doit\/hello$/, Import.list['hello']
  end

  it "info" do
    out = noop({verbose: true}) {
	Import.init('hello')
	Import.info
    }
    assert_match /SCRIPT/, out
    assert_match /CONFIG/, out
  end

  it "coverage: script" do
    Import.script
  end

  it "coverage: config" do
    Import.config
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doit-0.3.0 test/import_test.rb
doit-0.2.8 test/import_test.rb
doit-0.2.7 test/import_test.rb
doit-0.2.4 test/import_test.rb