jnicklas/turnip — Issue #16: Custom functions not supported in steps?
Author: NobbZ
Created: 2011-11-22 08:17:36+00:00
State: open

Hi!

I am going to move from cucumber to turnip, but while converting my steps an error occured...

The converted stepfile can be found at https://github.com/NobbZ/webworld/blob/feature/turnip/spec/turnip_steps.rb

When I try to run a feature that requires a login I get the following error:

```shell
1) Users Logging in
Failure/Error: Turnip::StepDefinition.execute(self, Turnip::StepModule.all_steps_for(*scenario_tags), step)
undefined method `log_in' for #
# spec/turnip_steps.rb:20:in `block in '
```

Is there a way to use my "log_in" function or do I have to repay myself and write the necessarely commands in every step that should use this function?