saasbook

spec_using_fixtures.rb

Aug 16th, 2013
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1. # spec/models/movie_spec.rb:
  2.  
  3. describe Movie do
  4.   fixtures :movies
  5.   it 'should include rating and year in full name' do
  6.     movie = movies(:milk_movie)
  7.     movie.name_with_rating.should == 'Milk (R)'
  8.   end
  9. end
Add Comment
Please, Sign In to add comment