Most of this talk was a basic Cucumber primer. However these things were new to me:
You can use this in a spec; it adds a block argument with the string in it:
""" multi-line string """
This Genearates a block argument as an array of hashes. ActiveRecord.create can take this as an argument.
Given the following proposals |email | title | |firstname.lastname@example.org | Cucumber| |email@example.com | Webrat |
Scenario Outline: Email accepted prposals Given the following proposals |email | title | |firstname.lastname@example.org | Cucumber| |email@example.com | Webrat | And the <proposal> proposal is approved When I send proposal emails Then <email> should <what> Examples: | proposal | email | what | | Cucumber | firstname.lastname@example.org | get email | | Cucumber | email@example.com | not get email | | Webrat | firstname.lastname@example.org | get email |
Before do end After do |scenario| end World do end World(MyModule)
Feature: Notification emails Background:
Feature: Take over the world I want it all @spanish @french @english Scenario: Take over Europe
cucumber -t french doit.feature # or negative cucumber -t ~french doit.feature