Sha256: 53a0b32a7799429fb55848bd10f93b6454ea9a91edc7cc871e38e4fb343a1c32
Contents?: true
Size: 1 KB
Versions: 13
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' module CurationConcerns module Workflow RSpec.describe SipityActionsGenerator do let(:workflow) { Sipity::Workflow.new(name: 'Hello') } let(:actions_configuration) do [ { name: "start_a_submission", transition_to: "new", emails: [ { name: "confirmation_of_ulra_submission_started", to: "creating_user" } ] }, { name: ["start", "potpie"] } ] end it 'exposes .call as a convenience method' do expect_any_instance_of(described_class).to receive(:call) described_class.call(workflow: workflow, actions_configuration: actions_configuration) end subject { described_class.new(workflow: workflow, actions_configuration: actions_configuration) } it 'parses the actions_configuration and calls the underlying DataGenerators::StateMachineGenerator' do allow_any_instance_of(StateMachineGenerator).to receive(:call) subject.call end end end end
Version data entries
13 entries across 13 versions & 1 rubygems