RSpec Rails be_a_new matcher
Passes if the object is a Widget and returns true for new_record?:
object.should be_a_new(Widget)
Passes if the object is a Widget and returns true for new_record?:
object.should be_a_new(Widget)