features/config_styles.feature in simplecov-0.8.0.pre vs features/config_styles.feature in simplecov-0.8.0.pre2

- old
+ new

@@ -22,9 +22,37 @@ When I open the coverage report generated with `bundle exec rake test` Then I should see "4 files in total." And I should see "using Config Test Runner" within "#footer" + Scenario: Inside start block, using instance var from outside + Given a file named ".simplecov" with: + """ + @filter = 'test' + SimpleCov.start do + add_filter @filter + command_name 'Config Test Runner' + end + """ + + When I open the coverage report generated with `bundle exec rake test` + Then I should see "4 files in total." + And I should see "using Config Test Runner" within "#footer" + + Scenario: Inside start block, using local var from outside + Given a file named ".simplecov" with: + """ + filter = 'test' + SimpleCov.start do + add_filter filter + command_name 'Config Test Runner' + end + """ + + When I open the coverage report generated with `bundle exec rake test` + Then I should see "4 files in total." + And I should see "using Config Test Runner" within "#footer" + Scenario: Explicitly before start block Given a file named ".simplecov" with: """ SimpleCov.add_filter 'test' SimpleCov.command_name 'Config Test Runner'