search for: as_something

Displaying 1 result from an estimated 1 matches for "as_something".

Did you mean: af_something
2010 May 27
3
as_null_object
Given that RSpec has the following methods to create test doubles ... double(:my_test_double) mock(:my_mock_object) stub(:my_stub) Is there a way to/ plans to introduce a similar syntax for null objects? null_object(:my_null_object) Instead of mock(:bar, :is_null_object => true) or mock(:foo).as_null_object I think this would be cleaner, what do you think?