Well, it's been out in the wild for a couple of days now, and there is at least one glaring error in the merbful_authentication code. The generator is called "authentication" instead of "authenticated" not too good for a port. That's changed now. Also there is some changes to give nice error messages when no ORM is selected or sequel is selected.
If you want to get the update you can get it the same as before.
Monday, January 7, 2008
Subscribe to:
Post Comments (Atom)
3 comments:
Thank you for this plugin. I am trying to use it in a merb project. Can you post an example of a spec for a controller that uses this plugin - any simple controller whose actions are protected by the login_required filter is fine. I am having trouble trying to write a spec for this case. Any info really appreciated. thanks..
I am having the same problem as ira, how do I go about stubbing the login_required filter?
Hey @ira and @Tim.
Sorry I didn't get back earlier. I'm also having these same issues at the moment for integration testing. The current crop of full stack helpers in merb don't allow access to the controller.
If you can live without going through the routes you can use the dispatch_to helper. This makes the controller available, and yields it so you can use
dispatch_to(MyController, :action) do
controller.stub!(:current_user).and_return(@fake_user)
end
Hope that's helpful :)
Post a Comment