Sha256: 4827a00b531136d2a50ca1e0522f8f0fe5826ab4ad06a87928e1ac1cb24407f1

Contents?: true

Size: 955 Bytes

Versions: 8

Compression:

Stored size: 955 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

8 entries across 8 versions & 1 rubygems

Version Path
ruby_raider-0.9.4 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.3 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.2 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.1 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.9.0 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.8.9 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.8.8 spec/integration/generators/actions_generator_spec.rb
ruby_raider-0.8.6 spec/integration/generators/actions_generator_spec.rb