OSDN Git Service

Use variables in feature steps for readability
authorgoldenapples <goldenapplesdesign@gmail.com>
Fri, 26 Apr 2013 23:55:36 +0000 (16:55 -0700)
committergoldenapples <goldenapplesdesign@gmail.com>
Fri, 26 Apr 2013 23:55:36 +0000 (16:55 -0700)
commit8652b9adbf6b50582076cf3f65dccfb82ed7a111
tree8cac3f70b227a78184c05fea326591a1fdab3b5b
parent10f253ebff870015142594d43c33d432645d5b41
Use variables in feature steps for readability

Rewrote the feature step so that it displays the actual command being
run, and uses variable substitution.

* I had to modify the definition of the "file should exist" step to
  allow variable substitution. All of the existing tests still pass, but
  I'm not sure if this is best practice. I can write a new step instead,
  if that makes more sense.
features/media.feature
features/steps/basic_steps.php