Sha256: 285a9542f54131fc57fa70db459a642a1345382c696dce702e1bfc08eabf8ea5

Contents?: true

Size: 523 Bytes

Versions: 8

Compression:

Stored size: 523 Bytes

Contents

require "sauce/logging"

module Sauce
  class TestGroup
    def initialize(platforms)
      @platforms = platforms
      @index = 0
    end

    def next_platform
      platform = @platforms[@index]
      @index += 1
      begin
        caps ={
          'os' => platform[0],
          'browser' => platform[1],
          'version' => platform[2]
        }
        caps.merge!({:caps => platform[3]}) if platform[3]
        caps
      rescue NoMethodError
        puts "I don't have any config"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sauce-3.7.2 lib/sauce/parallel/test_group.rb
sauce-3.7.1 lib/sauce/parallel/test_group.rb
sauce-3.7.0 lib/sauce/parallel/test_group.rb
sauce-3.5.11 lib/sauce/parallel/test_group.rb
sauce-3.5.10 lib/sauce/parallel/test_group.rb
sauce-3.5.9 lib/sauce/parallel/test_group.rb
sauce-3.5.8 lib/sauce/parallel/test_group.rb
sauce-3.5.7 lib/sauce/parallel/test_group.rb