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,7 +3,7 @@ require 'spec_helper'
describe 'playlists/index.html.haml' do
before do
assign :playlists, [
mock_model('Playlist', :name => 'Electro')
mock_model(Playlist, :name => 'Electro')
]
end