Women in Technology

Hear us Roar



Article:
  Behavior Driven Development Using Ruby (Part 1)
Subject:   This isn't BDD
Date:   2007-08-17 12:55:33
From:   court3nay
This is an introduction to rSpec syntax, not BDD, and the article title should reflect that.


If you were introducing BDD, you'd be talking about how you focus on testing behaviors, not specifying every minutiae of code implementation, which is precisely what this article is about -- how not to write rSpec.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Gregory Brown photo This isn't BDD
    2007-08-18 07:11:39  Gregory Brown | O'Reilly AuthorO'Reilly Blogger [View]

    The first part of this article is indeed about RSpec syntax, and you're spot on that the set of learning specs for Ruby classes isn't exactly the shining example of BDD goodness, but provides a great chance to show the tools off quickly and in simple steps that someone who hasn't done any BDD before can understand.

    In the second part of the article, I'll go into examples that are more behaviour centric, and more practical. However, I take a working knowledge of RSpec for granted there, which is why I needed to set it up here.

    Let me know what you think of part II when it gets published.

    -greg
    • This isn't BDD
      2007-08-23 16:22:12  court3nay [View]

      I certainly will! I guess my concern was just that it takes people a few weeks to unlearn the Test::Unit style syntax and methodology. BDD really is a different way of looking at testing. Good luck! :)