updated wdi function, created an rspec global config