A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you'd like to hire me, drop me a line. I'm also the author of Rails Rescue Handbook and Rails Freelancing Handbook.

Navigation
« Double Shot #614 | Main | Double Shot #612 »
Monday
Dec282009

Double Shot #613

Last week of the year. This one can't end soon enough for me.
  • Blueprints 0.4.0 - Another replacement for factories and fixtures with some nice syntactic sugar.
  • Ruby 1.8.7-p248 released - Can't really tell how significant this is because reading Ruby's own changelogs is a mystery to me.
  • holidays - Gem to extend the Ruby date class to make it holiday aware. Works well, once you figure out you have to require the individual holiday support for whatever region you're interested in.
  • CoffeeScript - Rubyish language that compiles down to JavaScript.
  • RMSforms - CSS styling framework especially for forms.
  • formtastic-sass - Sass mixins to style formtastic forms. If only I liked sass.
  • MySQL and Postgres command equivalents (mysql vs psql) - Handy if you switch back and forth.
  • email-spec - Matchers and steps for testing email with RSpec and Cucumber.
  • rspec-integration - A mind meld between regular Rails integration tests and RSpec. So far I like this much better than Cucumber.

Reader Comments (4)

Hello Mike,
I have been reading your daily posts for a long time and have come to like them very much. I am somewhat puzzled to read that you don't like Cucumber?

I had not seriously done any testing with Cucumber until recently. It turns out that for developing specifications that the users can relate to there is nothing that I have seen or read about that comes close to Cucumber and Webrat combination. I have a feeling that Cucumber/Webrat might just be the combination that we need to break into "Enterprise" mindset.

I am simply amazed at how well the combination works.

Bharat

December 28, 2009 | Unregistered CommenterBharat Ruparel

Mike, I don't like cucumber either. Take a look at my post on just using webrat. You might find this approach useful. http://spitfiresky.com/blog/how-you-should-be-doing-testing-in-rails.html

December 28, 2009 | Unregistered CommenterScott Motte

I've been on several projects that employed Cucumber, and as far as I could tell, the main use was to generate lots of billable hours while giving the developers a warm-and-fuzzy "look we're doing BDD" experience, as well as to soak up time writing regular expressions. Did not have any success getting business/end users to read and understand Cucumber files. So maybe we were doing it wrong, maybe my customers were stupid, but it was not good bang for the buck for me. For integration tests that are designed to make sure developers don't accidentally break, other alternatives are much less work.

December 29, 2009 | Unregistered CommenterMike Gunderloy

I always use Cucumber features and I hardly ever show them to business. So why do it?

For BDD. It's simply easier to write English sentences than code, because it's abstracted away from the HTML that webrat deals with. Writing a Cucumber feature helps me understand what I have to do in the same way writing an XP story would, except that a Cucumber feature is executable.

I also think reading Cucumber features is a great way for new team members to come up to speed on what the application does.

December 29, 2009 | Unregistered CommenterMark Wilden

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>