Sha256: d5c81d88b7027d398ce3f75e74bfbbf15aff0b31f0c4a95aea307de4bfceed91
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true require_relative '../generator' class RspecExamplesGenerator < Generator def generate_login_spec return if mobile_platform? template('spec.tt', "#{name}/spec/login_page_spec.rb") end def generate_pdp_spec return unless mobile_platform? template('spec.tt', "#{name}/spec/pdp_page_spec.rb") end def generate_model_factory return if args.include?(%w[selenium watir]) template('factory.tt', "#{name}/models/model_factory.rb") end def generate_model_data return if args.include?(%w[selenium watir]) template('data.tt', "#{name}/models/data/users.yml") end end
Version data entries
6 entries across 6 versions & 1 rubygems