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 | |email@example.com | Cucumber| |firstname.lastname@example.org | Webrat |
Scenario Outline: Email accepted prposals Given the following proposals |email | title | |email@example.com | Cucumber| |firstname.lastname@example.org | Webrat | And the <proposal> proposal is approved When I send proposal emails Then <email> should <what> Examples: | proposal | email | what | | Cucumber | email@example.com | get email | | Cucumber | firstname.lastname@example.org | not get email | | Webrat | email@example.com | 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
About the AuthorMore Content by Pivotal Labs