Call mock_model with the class name instead of a string
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user