cucumber/cucumber — pull request #478 by tooky (2013-06-02 11:01:24+00:00)
Title: HTML formatter breaks Background + Scenario Outline since 1.3.0

Backgrounds are not being run for the first example (after the header line) of a Scenario Outline.

This works fine with 1.2.5 or when using the pretty formatter. Here's a shell script that reproduces the problem (notice the output "number 2 with state: nil"):

```bash
#!/bin/bash

set -e
set -x

mkdir -p cucumber-bug/features/step_definitions

cat < cucumber-bug/Gemfile
source "https://rubygems.org"
gem "cucumber", "=> 1.3.0"
END

cat < cucumber-bug/features/bug.feature
Feature: Bug

Background:
Given I have set up state

Scenario:
Given a number 1

Scenario Outline:
Given a number

Examples:
| number |
| 2 |
| 3 |
| 4 |
END

cat < cucumber-bug/features/step_definitions/steps.rb
Given(/I have set up state/) { @state = true }
Given(/a number (\d+)/) { |n| puts "number #{n} with state: #{@state.inspect}" }
END

cd cucumber-bug
bundle install
bundle exec cucumber features --format html --out bug.html

if [[ `which open` ]]; then
open bug.html
fi
```