{{{ Today I had an interesting experience which I’d like to share with my friends. No, I didn’t discover my dark side, I knew that before. What I found out is that *mocking as a test method comes in handy* once you get it. h3. Why Don’t You Use RSpec? I’ve never been an RSpec… Continue reading What was a Classic Tester Became a Mockist…
Tag: testing
Spec Your Widgets with rspec-apotomo!
{{{ Open source is a great thing. I love the fact that you can simply ignore “feature requests by users”:http://groups.google.com/group/cells-and-apotomo/browse_thread/thread/6f50cb2ea5c62ff4 and anybody will give you a hard time about it – hey, *it’s _just_ open source*. Even better, people will start implementing things on their own if you make them wait long enough. This is… Continue reading Spec Your Widgets with rspec-apotomo!
Private Methods: To Test or Not To Test?
{{{ Recently I sat in a job interview, we were TDDing a data structure. That was fun, but it turned out that one big minus for me was that *I insisted on testing a private method*. I still believe that when writing a class that’s reused in multiple places (maybe as a gem) you have… Continue reading Private Methods: To Test or Not To Test?
test_xml 0.1 released – Testing your XML has never been easier!
{{{ A couple of days ago Pavel Gabriel and I released a refreshed version of the “test_xml”:https://github.com/alovak/test_xml gem. test_xml helps you *asserting that XML is the way your specification wants it.* It provides some simple assertions and runs with Test::Unit, MiniTest, RSpec2 and Cucumber. It’s perfect for testing REST services emitting XML representations. Internally, it… Continue reading test_xml 0.1 released – Testing your XML has never been easier!