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