You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'factory_girl'classPostattr_accessor:title,:descriptiondefsave!endend# main factoryFactoryGirl.definedofactory:postdotitle"some title"selfmethod(:factory).source_locationendend# use modify to add the traitFactoryGirl.modifydofactory:postdotrait:with_descdodescription"some desc"endmethod(:factory).source_locationfactory:described_post,traits: [:with_desc]endendFactoryGirl.create:post,:with_descFactoryGirl.create:described_post
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: