#3 ✓resolved
Matt Scilipoti

No specs exist

Reported by Matt Scilipoti | May 5th, 2009 @ 05:41 PM

There are no specs for resourcelogic. It's detestable. :)

This is kind of 'tongue in cheek', but we do feel it is serious detractor from resourcelogic. Which is unfortunate.

Please start with a sample spec for a controller.

For example, how do you handle the attributes= in build_object.

Are you shifting from:


  User.should_receive(:new).with(params)

To:


  mock_user = mock_model(User)
  User.should_receive(:new)
  mock_user.should_receive(:attributes=).with(params)

The developers on my team like what we see in resourcelogic and we volunteer to help write specs. We think it might be easier if we:

  • spoke with you about your plan for specs (or you published a quick outline)
  • derived them from the specs in the app resourcelogic was extracted from

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson May 5th, 2009 @ 06:05 PM

    • State changed from “new” to “open”

    Hi Matt,

    Thanks for your feedback. The library is still under development and is in more of an alpha stage. To be honest, I'm developing it along side a project that I am building. At first this library was just an idea I figured I would try out. My project has come a long ways and its been a great experience. That being said, all of the tests I have are more directed towards the application directly instead of the library. Since I wasn't sure, at first, if I would even stick with it. That being, said, once I find the time I plan to clean up the library, add in some official tests, and document. This is why I put, in bold, at the top of the readme, that this library was still under development.

    I would love some help with it. If you are interested in contributing and helping release the first version that would be great, just let me know what you would like to do. And yes, if you are interested in doing this I would like to discuss it with you. Thanks!

  • Matt Scilipoti

    Matt Scilipoti May 5th, 2009 @ 09:16 PM

    Thanks for the reply. We read your "semi-beta" comments. Thanks for the generous documentation.

    We appreciate your ideas and views. That's why we decided to nudge you a little. :)

    We also appreciate the difficulty of extracting tests for a plugin. We are interested in helping. We were hoping you might have a plan, just not enough bandwidth to implement it yet.

    Please email me: matts@possiamo.com

  • Ben Johnson

    Ben Johnson June 3rd, 2009 @ 04:26 AM

    • State changed from “open” to “resolved”

    Hi Matt,

    I want to apologize for not being on top of this. I don't have the time I need to finalize this library right now, as I am still developing it with the application I am working on. Although, I haven't touched it in a while so I feel like its pretty solid.

    The problem is that this started out as my own personal tool and I came up with a really neat design for all of my apps and resourcelogic makes that design work. Anyways, I plan on writing a blog post and cleaning up the readme some. If you want, fork it and go for it. Do what you think is best for your development style / app. MAybe we can merge the best of both worlds.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Adds context into the RESTful development style.

People watching this ticket

Pages