Sha256: 19651844896332cdff4a9aa39a3075dab7ea76f92d254c4f229acf8a7123188d
Contents?: true
Size: 266 Bytes
Versions: 15
Compression:
Stored size: 266 Bytes
Contents
require 'spec_helper' describe AuthorsController do describe 'GET show' do let(:matz) { Author.create! name: 'Matz' } it 'assigns the requested author as @author' do get :show, :id => matz.id assigns(:author).should eq(matz) end end end
Version data entries
15 entries across 15 versions & 1 rubygems