2010-01-20 16:58:56 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'test/unit'
|
|
|
|
require 'shoulda'
|
2010-01-27 22:19:32 +00:00
|
|
|
require 'tmpdir'
|
2010-01-20 16:58:56 +00:00
|
|
|
|
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
|
|
require 'hydra'
|
|
|
|
|
|
|
|
class Test::Unit::TestCase
|
|
|
|
end
|
2010-01-27 20:19:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|