I know that dependency hell is next up on the list of things to do, but I've got a strange issue anyway and I was hoping maybe somebody could point me in the right direction, or tell me to wait for 1.0.5. I can't tell if there's an error in my spec, an error in rspec, and error in Merb, an error in DM, or some combination thereof.
I have a HABTM between groups and users. Now I know DM has issues with HABTM at the moment, but at least if it's a DM problem then I should get a failing test, right? The test in question is for when a user leaves a group. I'm running ./ bin/rake spec like a good doobie. http://gist.github.com/33803 should have all the relevant code. "@group.users.delete session.user" is the line generating the exception. An interesting thing is, the test passes regardless of what I put in :message, so that seems buggy as well. It's definitely redirecting, though, which wouldn't happen if the exception was getting thrown as I expect it should. when i run ./bin/merb -a thin, i get the following exception from groups.rb:5 "undefined method `model' for nil:NilClass" in ./gems/gems/dm- core-0.9.8/lib/dm-core/associations/one_to_many.rb:299. This is somewhat expected, given DM's HABTM issues right now. And I imagine that I don't see the issue when I'm not bundling because of the known issues regarding dependency hell. BUT the two questions that get raised here are: 1. why does my spec redirect when i call ./bin/rake? 2. why does my spec pass regardless of the :message? and a third minor issue: when bundling, it'd really be nice not to see ./gems/gems/dm-core-0.9.8/ stack trace show up in "[ ] App" when it should probably show up in "[ ] Gem". Liam ps. did i mention that I love the "lots of love, from merb" at the bottom of the stack trace page? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
