Sha256: d2300064ed99d5c82355aa14523db53f0ff37929e34679d0da9c93c67cae9549

Contents?: true

Size: 543 Bytes

Versions: 14

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require_relative 'generator'

class RspecGenerator < Generator
  def generate_login_spec
    return unless (@_initializer.first & %w[android ios cross_platform]).empty?

    template('rspec/spec.tt', "#{name}/spec/login_page_spec.rb")
  end

  def generate_pdp_spec
    return if (@_initializer.first & %w[android ios cross_platform]).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

14 entries across 14 versions & 1 rubygems

Version Path
ruby_raider-0.5.6 lib/generators/rspec_generator.rb
ruby_raider-0.5.5 lib/generators/rspec_generator.rb
ruby_raider-0.5.4 lib/generators/rspec_generator.rb
ruby_raider-0.5.3 lib/generators/rspec_generator.rb
ruby_raider-0.5.2 lib/generators/rspec_generator.rb
ruby_raider-0.5.1 lib/generators/rspec_generator.rb
ruby_raider-0.5.0 lib/generators/rspec_generator.rb
ruby_raider-0.4.9 lib/generators/rspec_generator.rb
ruby_raider-0.4.8 lib/generators/rspec_generator.rb
ruby_raider-0.4.7 lib/generators/rspec_generator.rb
ruby_raider-0.4.6 lib/generators/rspec_generator.rb
ruby_raider-0.4.5 lib/generators/rspec_generator.rb
ruby_raider-0.4.4 lib/generators/rspec_generator.rb
ruby_raider-0.4.3 lib/generators/rspec_generator.rb