Sha256: 0517c016d399a93a2805e7fac705ffa13995913f29b0cffd1092e27761751ea5

Contents?: true

Size: 707 Bytes

Versions: 6

Compression:

Stored size: 707 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'tmpdir'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'hydra'

class Test::Unit::TestCase
  def target_file
    File.expand_path(File.join(Dir.tmpdir, 'hydra_test.txt'))
  end

  def test_file
    File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'write_file.rb'))
  end
end

module Hydra #:nodoc:
  module Messages #:nodoc:
    class TestMessage < Hydra::Message
      attr_accessor :text
      def initialize(opts = {})
        @text = opts.fetch(:text){ "test" }
      end
      def serialize
        super(:text => @text)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-0.10.0 test/test_helper.rb
hydra-0.9.0 test/test_helper.rb
hydra-0.8.0 test/test_helper.rb
hydra-0.7.2 test/test_helper.rb
hydra-0.7.0 test/test_helper.rb
hydra-0.6.0 test/test_helper.rb