Call mock_model with the class name instead of a string
This commit is contained in:
@@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe 'playlists/new.html.haml' do
|
||||
let(:playlist) do
|
||||
mock_model('Playlist').as_new_record.as_null_object
|
||||
mock_model(Playlist).as_new_record.as_null_object
|
||||
end
|
||||
|
||||
before do
|
||||
|
Reference in New Issue
Block a user