Class: GreenPepper::ListOfExampleFactory

Inherits:
CollectionExampleFactory show all
Defined in:
lib/greenpepper/factory/collectionexamplefactory.rb

Instance Method Summary collapse

Methods inherited from CollectionExampleFactory

#create_example

Methods inherited from ExampleFactory

#last_table?

Instance Method Details

#do_create_example(fixture_name) ⇒ Object



25
26
27
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 25

def do_create_example(fixture_name)
  ListOfExample.new fixture_name
end

#support?(table) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 21

def support?(table)
  /^\s*List\s*Of\s*$/i === table[0][0]
end