aol/cucumber-js — comment on commit d0169edbd21071a3c9686a6309b7615605913cdc
File: spec/cucumber/cli/argument_parser/support_code_path_expander_spec.js line 32
By jbpros:

Specing the regexp is a neat idea! I didn't think of it.

What about this:

```javascript
it("matches JavaScript files", function() {
var matchedJsFile = SupportCodePathExpander.SUPPORT_CODE_FILES_IN_DIR_REGEXP.test("example_steps.js");
expect(matchedJsFile).toBeTruthy();
});

it("matches CoffeeScript files", function() {
var matchedCoffeeScriptFile = SupportCodePathExpander.SUPPORT_CODE_FILES_IN_DIR_REGEXP.test("example_steps.coffee");
expect(matchedCoffeeScriptFile).toBeTruthy();
});
```

I think it expresses our intentions in a more explicit fashion.
And I try to follow the rule of "one expectation per example" when it's possible.