Hacker News new | ask | show | jobs
by YakiSauce 5682 days ago
In defense of Cucumber, I've been a rails developer for more than 2 years and I still find it easier to read English than Ruby. I think the extra layer of abstraction is well worth the effort when reading over other people's tests.
1 comments

Have you actually used Webrat? It reads English with extra punctuation. Here's an example from a test I happen to have open at this exact moment:

    visit "/special_recipes/new"
    fill_in "special_recipe[name]", :with => "Pie"
    select "Test User", :from => "special_recipe[user_id]"
    click_button "Create Special Recipe"
The mind naturally skips the punctuation. It actually reads easier than some Cucumber tests I've seen.