Sha256: 58924406f07680de5883f52359116525caba690824183bff7edda2ba51e4cc29

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

require 'fileutils'
require_relative '../spec_helper'
require_relative '../../lib/ruby_raider'

describe RubyRaider do
  shared_examples 'execute web frameworks' do |name|
    it 'runs the tests' do
      if ENV['CI']
        Dir.chdir(name) { system('gem install bundler && bundle install && raider u raid') }
      else
        Bundler.with_unbundled_env { Dir.chdir(name) { system('bundle exec raider u raid') } }
      end
    end
  end

  context 'with a Rspec and Selenium project' do
    include_examples 'execute web frameworks', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[2]}"
  end

  context 'with a Rspec and Watir project' do
    include_examples 'execute web frameworks', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES[3]}"
  end

  context 'with a Cucumber and Selenium project' do
    include_examples 'execute web frameworks', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[2]}"
  end

  context 'with a Cucumber and Watir project' do
    include_examples 'execute web frameworks', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES[3]}"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_raider-0.9.2 spec/system/ruby_raider_spec.rb
ruby_raider-0.9.1 spec/system/ruby_raider_spec.rb
ruby_raider-0.9.0 spec/system/ruby_raider_spec.rb
ruby_raider-0.8.9 spec/system/ruby_raider_spec.rb
ruby_raider-0.8.8 spec/system/ruby_raider_spec.rb
ruby_raider-0.8.6 spec/system/ruby_raider_spec.rb