Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Jeffrey Jones
Hi Richard (and Luis in the reply below), Excellent, I knew there must have been a reopsitory out there with good samples to work off. that looks fantastic. Thank you very much Jeff On 27/09/12 09:25, Richard Schneeman wrote: Check out https://github.com/schneems/wicked all of the tests are

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Luís Ferreira
You can just run "rails plugin new" which gives you a dummy app and them install cucumber on the dummy app as you would on a normal app, and go from there. The dummy app should behave exactly as a normal app which loads your engine/gem. On Sep 27, 2012, at 1:25 AM, Richard Schneeman wrote: > Ch

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Richard Schneeman
Check out https://github.com/schneems/wicked all of the tests are integration tests with capybara. If something is going to break it is going to break in a way the user would see it. You can see a variety of mixed unit/controller/integration tests in my OAuth provider gem https://github.com/op

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Jeffrey Jones
Hello Richard. That makes sense, and it is the route I am looking at, but how does one boot the dummy app and access it using (for example) capybara? Most information and repositories I have seen online do unit testing against the dummy app; I have not found any information on how to do full

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Richard Schneeman
When I have problems isolating behavior in tests, sometimes it can be useful to test more rather than less. If you are testing log output, use a dummy rails app inside of your test suite with dummy controller actions and hit it as a user would with capybara. Then you could route logs to stdout o

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Jeffrey Jones
Ahoi Gary Thanks for the info but the gem has already been created and the testing I want to do is not obvious (to my mind anyway) so online "Getting started" style stuff that I have found is not that useful.. This is why I was asking if an expert can offer some time to answer specific quest

[Rails-core] Re: Any rails experts able to offer some advice?

2012-09-25 Thread Gary Weaver
Not an expert, but since I have been kind of slack on testing recently, I'll try to get some karma by trying to help. First, you may want to ask on this list instead/too: https://groups.google.com/forum/?fromgroups=#!forum/rubyonrails-talk (Stackoverflow is also a good place to get Rails stuff an