Sha256: a17d00b7f27ae0dfa708e013a9ddfe5c1d64067d4c0891a426af6f98afa1ba27

Contents?: true

Size: 924 Bytes

Versions: 17

Compression:

Stored size: 924 Bytes

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
      Bundler.with_unbundled_env do
        Dir.chdir(name) do
          `bundle exec raider u raid`
        end
      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

17 entries across 17 versions & 1 rubygems

Version Path
ruby_raider-0.8.5 spec/ruby_raider_spec.rb
ruby_raider-0.8.3 spec/ruby_raider_spec.rb
ruby_raider-0.8.2 spec/ruby_raider_spec.rb
ruby_raider-0.8.1 spec/ruby_raider_spec.rb
ruby_raider-0.8.0 spec/ruby_raider_spec.rb
ruby_raider-0.7.9 spec/ruby_raider_spec.rb
ruby_raider-0.7.8 spec/ruby_raider_spec.rb
ruby_raider-0.7.7 spec/ruby_raider_spec.rb
ruby_raider-0.7.6 spec/ruby_raider_spec.rb
ruby_raider-0.7.5 spec/ruby_raider_spec.rb
ruby_raider-0.7.4 spec/ruby_raider_spec.rb
ruby_raider-0.7.3 spec/ruby_raider_spec.rb
ruby_raider-0.7.2 spec/ruby_raider_spec.rb
ruby_raider-0.7.1 spec/ruby_raider_spec.rb
ruby_raider-0.7.0 spec/ruby_raider_spec.rb
ruby_raider-0.6.9 spec/ruby_raider_spec.rb
ruby_raider-0.6.8 spec/ruby_raider_spec.rb