U
Usman Hussain
Hi Guys,
If i require a file by doing:
Dir["features/whitelabel/step_definitions/*.rb"].each {|file| require
file }
is there something I can write before or after this to stop it from
loading if the file has already been loaded?
Also can I use an IF statement or something?
Any help would be brilliant. At the moment the step_definitions folder
is getting loaded twice which is causing me massive headach. So all i
want to do is just to write a statement to say, if the file is loaded
do not load it again.
For some reason It is loading twice when it should not be allowed to.
any ideas?
Kind regards,
Usman Hussain
If i require a file by doing:
Dir["features/whitelabel/step_definitions/*.rb"].each {|file| require
file }
is there something I can write before or after this to stop it from
loading if the file has already been loaded?
Also can I use an IF statement or something?
Any help would be brilliant. At the moment the step_definitions folder
is getting loaded twice which is causing me massive headach. So all i
want to do is just to write a statement to say, if the file is loaded
do not load it again.
For some reason It is loading twice when it should not be allowed to.
any ideas?
Kind regards,
Usman Hussain