Advertisement
saasbook

spec_using_fixtures.rb

Feb 13th, 2016
347
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 'rails_helper.rb'
  4.  
  5. describe Movie do
  6.   fixtures :movies
  7.   it 'includes rating and year in full name' do
  8.     movie = movies(:milk_movie)
  9.     expect(movie.name_with_rating).to eq('Milk (R)')
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement