30 July 2010

The Ruby Reflector

Topic

Cucumber

  Source Favicon
Email

…different choices: Test::Unit , Shoulda , Cucumber , RSpec ... pick one and create your test suites as long as you add features or fix bugs .

Don't try to upgrade to Rails 3 unless you have a reasonable code coverage . And this is not because tests are cool or make you feel cool, but because Rails 3 changes so many aspects of your Rails application that upgrading without using your tests will be really painful.

Also, be sure to test your view helpers. Rails 3 …

simonecarletti.com Read
  Source Favicon
By Radar of The Life Of A Radar 25 days ago.
Email

…playing around with Rails 3 (now I'm using RVM). The latest version of Cucumber maintains compatibility between these two versions and does so by trying to require rspec/expecatations which will be available if the rspec-expectations gem is installed. So if you're trying to use RSpec 1 and 2 and Cucumber at the same time, you may run into this issue. So far the best solution I've found is uninstalling rspec-expectations .

Just thought I'd let you know. It's …

frozenplague.net Read
  Source Favicon
Email

I wrote this Cucumber feature, models have been changed to protect the innocent. Scenario: List latest posts under a tag Given the following posts exist: | Post | Tag list | Created on | Expires on | | post1 | yankees | May 1, 2010 | July 1, 2010 | | post2 | yankees | June 1, 2010 | July 1, 2010 | | post3 | yankees | May 5, 2010 | July 1, 2010 | | post4 | yankees | May 30, 2010 | July 1, 2010 | | post5 | yankees | May 29, 2010 | July 1, …

robots.thoughtbot.com Read
  Source Favicon
By Mark Bates of Meta Bates 29 days ago.
Email

…writing a four step wizard in your application. If you write a few test scripts using something like Cucumber first before you write your code you can simply keep re-running those to make sure your code is working. If you don't have those test scripts written then you continually have to keep going to a browser and entering all the information in each of the steps so you can test something in step four. Which one do you think takes longer, having a few test scripts you can run, or manually …

metabates.com Read
  Source Favicon
By David of David Chelimsky 29 days ago.
Email

Cucumber features

Each of the repos has a growing set of Cucumber features. Some of the features have been added in after the fact, but many of the new features have been driven out using Cucumber. These are a great source of " How-To" information, and you know they're up to date because they are executable documentation .

If you peruse these and are unable to find the information you're looking for, or find any of the information incomplete or confusing, please, …

blog.davidchelimsky.net Read
  Source Favicon
On paperplanes 1 month ago.
Email

Vim that bring TextMate-like functionality, or that support things like Cucumber, smart quotes and auto-closing braces , or even the most awesome Git integration you'll find. But the nicest of them all is Pathogen , a script that allows you to keep all your other scripts in separate places, not losing overview of what's installed where, and in which version.

Coming from TextMate, you're gonna miss the "Go To File" dialog, I'm sure. …

paperplanes.de Read
  Source Favicon
Email

I mentioned before that Cucumber scenarios should cover overall integration. Something like these would work: Scenario: Update a post successfully Given I am signed in And I authored a post titled "Great Scott" When I go to edit the "Great Scott" post And I fill in "Title" with "Willard Scott" And I press "Update" Then I should see the flash message "Your post was updated successfully" And I should have authored "Willard …

robots.thoughtbot.com Read
  Source Favicon
On danieltenner.com 1 month ago.
Email

Cucumber, sliced lengthwise, drizzled with soy sauce (about 50 calories)

Red peppers, sliced, with some salt ground on top (about 50 calories)

Rice crackers (about 16 calories each)

Low-fat yoghurt (about 60 calories for the Danone Activia ones)

Two big glasses of water (0 calories!)

Typically, the hunger will go away within half an hour. If no, wait another half hour, then have another snack.

Low-fat / Low-sugar

A lot of scumbags in the food industry label high-fat foods "low …

danieltenner.com Read
  Source Favicon
By Daniel of OnRails.org 1 month ago.
Email

…audience follow right along. That was great. They didn't have time to access a few of the advanced Cucumber subjects ?? next time make that a full day tutorial.

The first talk I attended on tuesday was Building an API with Rails which was a panel discussion with guys from Twitter, 37Signals, Github, the NYT and others. I really enjoyed that there was several distinct views on several aspects like on APIs like versioning, security, performance which relates exactly …

onrails.org Read
  Source Favicon
By Jake Scruggs of Jake Scruggs 1 month ago.
Email

He's excited about using the cucover gem to do "Lazy coverage-aware running of Cucumber acceptance tests" Kinda like a super smart autotest.

He mentioned this post as required reading that he doesn't necessarily agree with: http://jamesshore.com/Blog/Alternatives-to-Acceptance-Testing.html

Capybara can use envjs gem to run javascript tests in cuke. Which is very cool. Capybara-envjs on github

Dear Lazyweb, how do you get a showoff presentation up on …

jakescruggs.blogspot.com Read