Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cucumber testing, loading transforms

 
Roger Holmes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently using the online tutorials to teach myself Cucumber.
I'm currently struggling to find a way to delay the loading of dependent step definitions until I have loaded my transforms.rb file but i can't avoid the constant reassignment warnings. Can anyone help ?

Thanks,
Roger
 
Matt Wynne
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roger,

Have you tried putting the transforms.rb file into features/support? That folder is loaded automatically by Cucumber (before your step defs are loaded) so you shouldn't need to require any files in there explicitly.

There's plenty of info on using transforms in our book ;)
 
Roger Holmes
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Matt, that did the job ! Please keep up the good work on Cucumber !

Cheers,
Roger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic