Class: GreenPepper::SupersetOfExampleFactory

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



55
56
57
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 55

def do_create_example(fixture_name)
  SupersetOfExample.new fixture_name
end

#support?(table) ⇒ Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 51

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