Call mock_model with the class name instead of a string

This commit is contained in:
Thibault Jouan
2011-09-20 23:27:48 +00:00
parent abb7b07c89
commit 72f800397d
6 changed files with 7 additions and 7 deletions

View File

@@ -3,10 +3,10 @@ require 'spec_helper'
describe 'home/index.html.haml' do
before do
assign :playlists, [
mock_model('Playlist', :name => 'Electro')
mock_model(Playlist, :name => 'Electro')
]
assign :tracks, [
mock_model('Track', :name => 'Mega song')
mock_model(Track, :name => 'Mega song')
]
end