Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Factory.sequence :number do |n|
- "+19876543210"
- end
- Factory.sequence :inbox do |n|
- "Text #{n}"
- end
- Factory.define :inbox, :class => 'inbox' do |inbox|
- inbox.text { Factory.next :inbox }
- inbox.number { Factory.next :number }
- inbox.gateway {|gateway| gateway.association(:gateway) }
- end
Add Comment
Please, Sign In to add comment