I have an Event model which has a name and a unique code. The unique code is generated on after_initialiser block. Now during the integration tests how can I get this code back so that I can continue testing with the event?
click_link "Create an event" fill_in "Name",with:"Oracle" click_button "Create Event"
I want to get back the code of the event created. Can I use factorygirl in some way to do that?
Thanks a lot!!!