rspec/rspec-rails — Issue #488: as_null_object is returning nil instead of the receiver object
Author: dchelimsky
Created: 2012-01-19 02:56:17+00:00
State: open

Moved from rspec/rspec-mocks#95

I migrated from rspec 2.6 to 2.8 (and rspec-rails 2.8.1). All the tests were passing on 2.6, but on 2.8 I have following issue:
let(:contact) { mock_model(Contact).as_null_object }
contact.first_name is returning nil instead of the contact object, as it was in the 2.6.

Thanks,
Mirela