Re: [rspec-users] warning: toplevel constant XYZ referenced Admin:XYZ

2013-05-15 Thread Tom D.
the following is lifted from the 'Gotchas' section of my own internal wiki, i hope it help's someone else some day. Can't load namespaced controllers Errors: warning: toplevel constant Finance referenced by Member::Finance OR uninitialized constant Finance Cause: a namespaced controller /

[rspec-users] Spec-ing private method

2013-05-15 Thread Andrey S.
Yes, I know, that testing private methods it's not a good idea (and I read this thread - http://www.ruby-forum.com/topic/197346 - and some others) But how can I test the following code? I use xmpp4r. In my public method #listen I start receive jabber messages like so: def listen @client.add_mes