Sha256: 8eada944f6fbf42edcba1392b684eeea916e8e6112b7f2714ff0c3bff64dfe4b

Contents?: true

Size: 885 Bytes

Versions: 9

Compression:

Stored size: 885 Bytes

Contents

Given(/^I have an Auton that has two steps, first step scheduling the next step$/) do
  class ScheduleSecondStepAuton
    include StructureMapper::Hash

    def first
      context.schedule_step(:second)
    end

    def second
      'ok'
    end

    attr_accessor :context

    attribute foo: Fixnum
  end
  @auton_type="ScheduleSecondStepAuton"
  @auton_id = Celluloid::Actor[:nestene_core].create_auton(@auton_type)
end

When(/^I schedule the first step that returns the uuid of the second scheduled step$/) do
  @step_execution_id = Celluloid::Actor[:nestene_core].schedule_step @auton_id, :first
  @step_execution_id = Celluloid::Actor[:nestene_core].wait_for_execution_result(@auton_id, @step_execution_id)
end

When(/^I wait for the second step to finish$/) do
  @execution_result = Celluloid::Actor[:nestene_core].wait_for_execution_result(@auton_id, @step_execution_id)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nestene-0.1.8 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.7 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.6 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.5 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.4 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.3 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.2 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.1 features/step_definitions/schedule_steps_steps.rb
nestene-0.1.0 features/step_definitions/schedule_steps_steps.rb