Sha256: 1b190ba9bdec57b602e4084d401739cf6dc47941ba90eb279aba9b28cb2f846d
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true require_relative 'generator' class RspecGenerator < Generator def generate_login_spec return unless (@_initializer.first & %w[android ios]).empty? template('rspec/spec.tt', "#{name}/spec/login_page_spec.rb") end def generate_pdp_spec return if (@_initializer.first & %w[android ios]).empty? template('rspec/spec.tt', "#{name}/spec/pdp_page_spec.rb") end def generate_base_spec template('rspec/base_spec.tt', "#{name}/spec/base_spec.rb") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.4.2 | lib/generators/rspec_generator.rb |
ruby_raider-0.4.1 | lib/generators/rspec_generator.rb |