Hi folks, I've come a long way testing my app with rspec 3, meawhile I've written over 2000 tests over the last 6 or so weeks. So if someone wants examples how to test different aspects of a rails app, you can probably find some exmples here: https://github.com/informatom/mercator/tree/master/spec
I don't crae about speed of the tests, I prefer to see records in the database appearing and being modified. The one thing, I'm currently struggling with is testing a controller action within an isolated engine, e.g.: https://github.com/informatom/mercator/blob/master/spec/mercator_mpay24/controllers/admin/payments_controller_spec.rb Running the tests there give me an Failure/Error: get :check_confirmation, id: @payment.id NameError: undefined method `page' for class `#<Class:0x00000001d6cbc0>' Where that `#<Class:0x00000001d6cbc0>' class is nil Maybe through the isolation of the engine in testing dryml cannot be seen from rspec .... while in the app it work fine. I tried to fix it by defining <def tag="page" for="NilClass"></def> to overcome this, but in vain. I'm open to any ideas... (otherwise, I just skip this controller...) Cheers, Stefan -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/d/optout.
