Sha256: b4f5652a83090bd4e32cce88286bae98413012c110a269074ef5647d4638fefd

Contents?: true

Size: 943 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
ruby_raider-0.8.5 spec/actions_generator_spec.rb
ruby_raider-0.8.3 spec/actions_generator_spec.rb
ruby_raider-0.8.2 spec/actions_generator_spec.rb
ruby_raider-0.8.1 spec/actions_generator_spec.rb
ruby_raider-0.8.0 spec/actions_generator_spec.rb