Skip to content

Instantly share code, notes, and snippets.

@jefflab
Created October 28, 2010 17:38
Show Gist options
  • Save jefflab/651886 to your computer and use it in GitHub Desktop.
Save jefflab/651886 to your computer and use it in GitHub Desktop.
vidsync get
jeffbox:www> pwd
/Users/jlabarge/code/zoodles/www
jeffbox:www> find . -name "*.rb" -exec grep "StorybookVideo" {} \; -print
StorybookVideo.find(slug).put(:sync)
StorybookVideo.find(slug).destroy
./app/models/book_reading_page.rb
class StorybookVideo < ActiveResource::Base
./app/resources/storybook_video.rb
StorybookVideo.should_receive(:find).ordered.with(@page.slug).and_return(video)
StorybookVideo.should_receive(:find).with(@page.slug).and_return(video)
./spec/models/book_reading_page_spec.rb
describe StorybookVideo do
@klass = StorybookVideo
./spec/models/resources/storybook_video_spec.rb
describe StorybookVideo do
./spec/resources/storybook_video_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment