Class: TelegramActionExampleGroup::TestFlow
- Inherits:
-
TelegramWorkflow::Workflow
- Object
- TelegramWorkflow::Workflow
- TelegramActionExampleGroup::TestFlow
- Defined in:
- lib/telegram_workflow/rspec.rb
Instance Attribute Summary collapse
-
#example_group ⇒ Object
Returns the value of attribute example_group.
Attributes inherited from TelegramWorkflow::Workflow
Instance Method Summary collapse
Methods inherited from TelegramWorkflow::Workflow
Constructor Details
This class inherits a constructor from TelegramWorkflow::Workflow
Instance Attribute Details
#example_group ⇒ Object
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
#client ⇒ Object
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 |