Browse files

CLC-823 Document how to timeshift data feeds

  • Loading branch information...
Chris Tweney
Chris Tweney committed Dec 19, 2012
1 parent b493a80 commit 69fe48fbbac78fbdceecd57ab68dd95ce6f37ea1
Showing with 8 additions and 4 deletions.
  1. +8 −4
@@ -167,17 +167,21 @@ If you use VPN, use group #1 (1-Campus_VPN)
<span data-ng-bind="name"></span>
-## Freshening fake data feeds
+## Recording fake data feeds and timeshifting them
Make sure your test.local.yml file has real connections to real external services that are fakeable (Canvas, Google, etc).
Now do:
-rake spec freshen_vcr=true
-git add fixtures/fakeable_proxy_data
-git commit -a -m "Helpful commit message"
+rake vcr:record
+rake vcr:prettify
+You can now find the prettified files in fixtures/pretty_vcr_recordings. You can edit these files to put in tokens that
+will be substituted on server startup. See config/initializers/timeshift.rb for the dictionary of substitutions. Edit
+ the debug_json property of each response, and timeshift.rb will automatically convert debug_json to the format actually
+ used by VCR.
## Rake tasks:
To view other rake task for the project: ```rake -T```

0 comments on commit 69fe48f

Please sign in to comment.