SupportBee / Backbone-Factory

A factory for creating backbone objects for testing
86 stars 20 forks source link

Override factories to attribute:nil #4

Open Jpunt opened 11 years ago

Jpunt commented 11 years ago

In FactoryGirl you can pass nil to a certain attribute, to simulate a blank input (to test validation or default-fallback). Is this possible in Backbone-Factory?

unamashana commented 11 years ago

Interesting. Sorry I saw it only now. This should be possible by using unset on some attributes. Do you want to send a patch?