Class: TelegramActionExampleGroup::TestFlow

Inherits:
TelegramWorkflow::Workflow show all
Defined in:
lib/telegram_workflow/rspec.rb

Instance Attribute Summary collapse

Attributes inherited from TelegramWorkflow::Workflow

#logger, #params

Instance Method Summary collapse

Methods inherited from TelegramWorkflow::Workflow

#initialize, #process

Constructor Details

This class inherits a constructor from TelegramWorkflow::Workflow

Instance Attribute Details

#example_groupObject

Returns the value of attribute example_group.



53
54
55
# File 'lib/telegram_workflow/rspec.rb', line 53

def example_group
  @example_group
end

Instance Method Details

#clientObject



55
56
57
# File 'lib/telegram_workflow/rspec.rb', line 55

def client
  example_group.subject.client
end

#redirect_to(action_or_step, session_params = nil) ⇒ Object



59
60
61
62
63
64
65
66
67
# File 'lib/telegram_workflow/rspec.rb', line 59

def redirect_to(action_or_step, session_params = nil)
  super

  if session_params
    example_group.subject.flow.send(:redirect_to, action_or_step, session_params)
  else
    example_group.subject.flow.send(:redirect_to, action_or_step)
  end
end