Sha256: 0b25dda750e93428b65cb131c1f7b105a521eaee9226934c4ed6cc99528bc1ac

Contents?: true

Size: 230 Bytes

Versions: 7

Compression:

Stored size: 230 Bytes

Contents

class ShowCreator < ActiveCucumber::Creator

  def value_for_director director_name
    return nil if director_name.blank?
    Director.find_by(name: director_name) || FactoryGirl.create(:director, name: director_name)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_cucumber-1.0.0 features/support/show_creator.rb
active_cucumber-0.2.1 features/support/show_creator.rb
active_cucumber-0.2.0 features/support/show_creator.rb
active_cucumber-0.1.0 features/support/show_creator.rb
active_cucumber-0.0.10 features/support/show_creator.rb
active_cucumber-0.0.9 features/support/show_creator.rb
active_cucumber-0.0.8 features/support/show_creator.rb