Sha256: 572ecda3b025c832d4ae2011674aaa9bd63eaf4b2a152cc9b0fbeff219df5f23

Contents?: true

Size: 614 Bytes

Versions: 10

Compression:

Stored size: 614 Bytes

Contents

require 'rails_helper'

module Kuroko2::Workflow::Task
  describe Echo do
    describe '#execute' do
      subject { Node.new().execute }

      context 'with valid syntax' do
        let(:definition) { create(:job_definition, script: "echo:") }
        let(:instance) { create(:job_instance, job_definition: definition) }
        let(:option) { "hello, world" }
        let(:node) { Kuroko2::Workflow::Node.new(:echo, option) }
        let(:token) { build(:token, job_definition: definition, job_instance: instance) }

        it { expect(Echo.new(node, token).execute).to eq(:next) }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/workflow/task/echo_spec.rb
kuroko2-0.7.0 spec/workflow/task/echo_spec.rb
kuroko2-0.6.0 spec/workflow/task/echo_spec.rb
kuroko2-0.5.2 spec/workflow/task/echo_spec.rb
kuroko2-0.5.1 spec/workflow/task/echo_spec.rb
kuroko2-0.5.0 spec/workflow/task/echo_spec.rb
kuroko2-0.4.6 spec/workflow/task/echo_spec.rb
kuroko2-0.4.5 spec/workflow/task/echo_spec.rb
kuroko2-0.4.4 spec/workflow/task/echo_spec.rb
kuroko2-0.4.3 spec/workflow/task/echo_spec.rb