Sha256: 84f7a38fc3f38836f4dc70d6cefb6d899da2fda00ff400ad117d383701074643

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb')
require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1')

class TestWorkflowDocumentation < Test::Unit::TestCase
  module UsageWorkflow
    extend Workflow
    
    self.name = "UsageWorkflow"

    self.title = "Workflow to test documentation"
    self.description = "Use this workflow to test if the documentation is correctly presented"

    desc "Desc"
    input :array, :array, "Array"
    task :step1 => :string do
    end

    dep :step1
    desc "Desc2"
    input :float, :float, "Float"
    task :step2 => :string do
    end
  end

  def test_usage
    assert_match 'test', UsageWorkflow.documentation[:title]
    assert_match 'presented', UsageWorkflow.documentation[:description]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scout-gear-8.0.0 test/scout/workflow/test_documentation.rb
scout-gear-7.3.0 test/scout/workflow/test_documentation.rb
scout-gear-7.2.0 test/scout/workflow/test_documentation.rb
scout-gear-7.1.0 test/scout/workflow/test_documentation.rb
scout-gear-6.0.0 test/scout/workflow/test_documentation.rb
scout-gear-5.2.0 test/scout/workflow/test_documentation.rb