Sha256: d5f17c1641dfcff991da0af6fbb1db0db8114290334d40538ca61a604f54a913

Contents?: true

Size: 543 Bytes

Versions: 15

Compression:

Stored size: 543 Bytes

Contents

require 'helper'
require 'set'
require 'example-apps'

class TestSpqrHello < Test::Unit::TestCase
  include QmfTestHelpers

  def setup
    @child_pid = nil
  end

  def test_hello_objects
    app_setup QmfHello
    objs = $console.objects(:class=>"QmfHello", :agent=>@ag)
    assert objs.size > 0
  end

  def test_hello_call
    app_setup QmfHello
    obj = $console.objects(:class=>"QmfHello", :agent=>@ag)[0]
    val = obj.hello("ruby").result

    expected = QmfHello.find_by_id(0).hello("ruby")

    assert_equal expected, val
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spqr-0.3.6 test/test_spqr_hello.rb
spqr-0.3.5 test/test_spqr_hello.rb
spqr-0.3.3 test/test_spqr_hello.rb
spqr-0.3.2 test/test_spqr_hello.rb
spqr-0.3.1 test/test_spqr_hello.rb
spqr-0.3.0 test/test_spqr_hello.rb
spqr-0.2.4 test/test_spqr_hello.rb
spqr-0.2.3 test/test_spqr_hello.rb
spqr-0.2.2 test/test_spqr_hello.rb
spqr-0.2.0 test/test_spqr_hello.rb
spqr-0.1.4 test/test_spqr_hello.rb
spqr-0.1.3 test/test_spqr_hello.rb
spqr-0.1.2 test/test_spqr_hello.rb
spqr-0.1.1 test/test_spqr_hello.rb
spqr-0.1.0 test/test_spqr_hello.rb