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

@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'users/new.html.haml' do
let(:user) do
mock_model('User').as_new_record.as_null_object
mock_model(User).as_new_record.as_null_object
end
before do