Advertisement
saasbook

mock_trainwreck.rb

Jan 10th, 2012
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.10 KB | None | 0 0
  1. movie = mock('Movie', :pics => [mock('Picture', :format => 'gif')])
  2. Movie.count_pics(movie).should == 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement