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