Sha256: 7e1e7223c40027ae5a7138a717407693da9544f652eee062cad0dbec4fdf3913

Contents?: true

Size: 952 Bytes

Versions: 18

Compression:

Stored size: 952 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../lib/generators/actions/actions_generator'
require_relative '../spec_helper'

describe ActionsGenerator do
  shared_examples 'creates web automation framework' do |name|
    it 'creates a github actions file' do
      expect(File).to exist("#{name}/.github/workflows/test_pipeline.yml")
    end
  end

  context 'with rspec and selenium' do
    include_examples 'creates web automation framework', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[2]}"
  end

  context 'with rspec and watir' do
    include_examples 'creates web automation framework', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[3]}"
  end

  context 'with cucumber and selenium' do
    include_examples 'creates web automation framework', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[2]}"
  end

  context 'with cucumber and watir' do
    include_examples 'creates web automation framework', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[3]}"
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby_raider-1.1.2 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.1.1 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.1.0 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.9 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.8 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.7 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.6 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.5 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.4 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.3 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.2 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.1 spec/integration/generators/actions_generator_spec.rb
ruby_raider-1.0.0 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.9 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.8 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.7 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.6 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.5 spec/integration/generators/actions_generator_spec.rb