Class: RainforestRubyRuntime::Drivers::Sauce

Inherits:
Object
  • Object
show all
Defined in:
lib/rainforest_ruby_runtime/drivers/sauce.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Sauce



6
7
8
# File 'lib/rainforest_ruby_runtime/drivers/sauce.rb', line 6

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/rainforest_ruby_runtime/drivers/sauce.rb', line 4

def options
  @options
end

Instance Method Details

#to_rspec(tests) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rainforest_ruby_runtime/drivers/sauce.rb', line 10

def to_rspec(tests)
  apply_config

  RSpec.describe 'Rainforest', sauce: true, tests: tests do
    [:tests].each do |test|
      it "[#{test.id}] #{test.title}" do
        test.run
      end
    end
  end
end