Sha256: 3d1cc5828a693ed1c6c8eb664abbc9c5e9275c72dc1ead80bbe5b6407a18d372

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

$:.push File.dirname(__FILE__)
require 'helper'

class TestDataMinerProcess < Test::Unit::TestCase
  context '#inspect' do
    setup do
      @config = DataMiner::Config.new 'foo'
    end
    should 'describe a block' do
      process = DataMiner::Process.new(@config, 'something cool') { }
      assert_match /block/, process.inspect
    end
    should 'describe a method' do
      process = DataMiner::Process.new @config, :something_cool
      assert_match /method/, process.inspect
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
data_miner-1.1.4 test/test_data_miner_process.rb
data_miner-1.1.3 test/test_data_miner_process.rb