Sha256: a8cb3ace3e10894f3244b4a793f40696e4336a86b64f9a11e5e942ee1419626d
Contents?: true
Size: 336 Bytes
Versions: 11
Compression:
Stored size: 336 Bytes
Contents
class EpisodeCreator < ActiveCucumber::Creator def value_for_show show_name Show.find_by(name: show_name) || FactoryGirl.create(:show, name: show_name, genre: @genre) end def value_for_genre genre_name @genre = Genre.find_by(name: genre_name) || FactoryGirl.create(:genre, name: genre_name) delete :genre end end
Version data entries
11 entries across 11 versions & 1 rubygems