Advertisement
saasbook

spec_using_fixtures.rb

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