Sha256: 232fc7f9654cfc7ec9767c134633a82c113cf036cf97e1b80ce8a8ca3a7095f8
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
module CQL module ModelHelper def directory_with(*models) directory_model = CukeModeler::Directory.new models.each do |model| case when model.is_a?(CukeModeler::Feature) file_model = CukeModeler::FeatureFile.new if Gem.loaded_specs['cuke_modeler'].version.version[/^0/] file_model.features = [model] else file_model.feature = model end directory_model.feature_files << file_model else raise(ArgumentError, "Don't know how to handle a '#{model.class}'") end end directory_model end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cql-1.5.1 | testing/model_helper.rb |
cql-1.5.0 | testing/model_helper.rb |