This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# More than inspired by JB Steadman - http://pivotallabs.com/users/jb/blog/articles/1152-javascripttests-bind-reality- | |
# | |
# Adds a save_fixture method to Rspec 2's ViewExampleGroups which takes the | |
# rendered and stores it in a js_dom fixture file to be used with jasmine. | |
# | |
# Simply drop this into spec/support. | |
# | |
# Then, at the end of a view spec that you want to save as a fixture, simply call | |
# save_fixture('name_of_fixture_file') | |
# |