by José Mota
Lessons:15Length:2.5 hours

For full access to all 15 lessons, including source files, subscribe with Elements.
- Overview
- Transcript
2.7 Transforms
Cucumber features are parsed by the 'gherkin' gem. It uses regular expressions to match the behavior you want to provoke. The parsing is done in such a way that it passes strings to your step definitions, so if you need something other than strings, you’ll need to transform that input. Cucumber transforms will help you ease that passage from feature content into proper Ruby code.
Also, if you want to have a set of tabular data that you can process at once, Cucumber lets you have simple ASCII tables that are instantly converted to Ruby hashes. It’s a terrific way, for example, to setup a data source with some quick fixtures. You’ll how to take advantage of those tables, manipulate them and reuse them with transforms as well.
1.Introduction1 lesson, 03:50
1 lesson, 03:50
Free Lesson 1.1Introduction03:50
Free Lesson
1.1
Introduction
03:50
2.Acceptance Testing in Ruby with Cucumber13 lessons, 2:19:08
13 lessons, 2:19:08
Free Lesson 2.1Unit x Integration x Acceptance tests06:45
Free Lesson
2.1
Unit x Integration x Acceptance tests
06:45
2.2Installation & Bootstrap03:25
2.2
Installation & Bootstrap
03:25
2.3Gherkin: Features And Scenarios06:29
2.3
Gherkin: Features And Scenarios
06:29
2.4Basic Cucumber Workflow09:07
2.4
Basic Cucumber Workflow
09:07
2.5Cucumber With Minitest06:46
2.5
Cucumber With Minitest
06:46
2.6Step Definitions06:47
2.6
Step Definitions
06:47
2.7Transforms15:22
2.7
Transforms
15:22
2.8Multi-line Step Arguments05:57
2.8
Multi-line Step Arguments
05:57
2.9Backgrounds and Scenario Outlines10:50
2.9
Backgrounds and Scenario Outlines
10:50
2.10Tags06:45
2.10
Tags
06:45
2.11Hooks15:13
2.11
Hooks
15:13
2.12Configuration And Profiles11:46
2.12
Configuration And Profiles
11:46
2.13Rails + Cucumber + Capybara33:56
2.13
Rails + Cucumber + Capybara
33:56
3.Conclusion1 lesson, 05:44
1 lesson, 05:44
3.1Final Tips05:44
3.1
Final Tips
05:44
Continue watching with Elements
Continue watching with Elements