kadamwhite / mbtawesome

An MBTA subway status application with a good attitude
http://www.mbtawesome.com
MIT License
11 stars 0 forks source link

Add more fixtures & improve fixture infrastructure #48

Closed kadamwhite closed 9 years ago

kadamwhite commented 9 years ago

This adds fixtures for a number of different predictions scenarios (late night, service delays, etc), and makes it so that the fixture in use can be controlled via command-line flags: recording of new fixtures can be similarly controlled.

Use a particular fixture:

bin/debug --fixture=fixture-dir-name
# or
bin/debug -f=fixture-dir-name

Record a new fixture:

bin/debug --record -f=fixture-dir-name
# or
bin/debug -r -f=fixture-dir-name

bin/debug [options] can always be replaced by npm run with-fixtures -- [options]