Fabricators for namespaced classes

35 views
Skip to first unread message

Gianni Chiappetta

unread,
Nov 18, 2013, 6:41:36 PM11/18/13
to fabrica...@googlegroups.com
This might be something extremely simple that I've overlooked in the documentation, but how does one
create fabricators for namespaced classes? E.g.: `Authorization::Google`



--
Gianni Chiappetta
Runlevel6

Paul Elliott

unread,
Nov 18, 2013, 7:33:28 PM11/18/13
to fabrica...@googlegroups.com
You can specify the "class_name" in the fabricator definition like this:

Fabricator(:auth_google, class_name: "Authorization::Google")

--Paul
--
You received this message because you are subscribed to the Google Groups "fabrication" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabricationge...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--

-- Paul

Reply all
Reply to author
Forward
0 new messages