3 ms·
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 abst
by YakiSauce 16y 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.
- bryanlarsen 16y agoHave 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.