Class: DataObject
- Inherits:
-
DataFactory
- Object
- DataFactory
- DataObject
- Defined in:
- lib/test-factory/data_factory.rb
Overview
Will soon be removed…
Instance Method Summary collapse
Methods inherited from DataFactory
#checkbox_setting, #collection, #data_object_copy, #edit_fields, #edit_item_fields, #fill_out, #fill_out_item, #get_or_select, #get_or_select!, #ordered_fill, #ordered_item_fill, #requires, #update_from_parent
Methods included from Foundry
#create, #make, #on, #visit, #wait_until
Instance Method Details
#set_options(hash) ⇒ Object
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
# File 'lib/test-factory/data_factory.rb', line 350 def (hash) warn %{ Welcome to version 0.4.6! Please update all your Data Object classes to inherit from DataFactory instead of DataObject. You still need to update this class: #{self.class} Note that in the future this warning will be going away. You'll just get an error, so be sure you update your project soon! } @collections ||= [] hash.each do |key, value| instance_variable_set("@#{key}", value) @collections << key if value.kind_of?(CollectionsFactory) end end |