Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # spec/models/movie_spec.rb:
- require 'spec_helper.rb'
- describe Movie do
- fixtures :movies
- it 'should include rating and year in full name' do
- movie = movies(:milk_movie)
- movie.name_with_rating.should == 'Milk (R)'
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement