Module: InfinityTest::Environment

Included in:
TestFramework
Defined in:
lib/infinity_test/environment.rb

Instance Method Summary collapse

Instance Method Details

#environments(&block) ⇒ Object

Run in context of each Ruby Environment, and the Ruby Version



6
7
8
9
10
11
12
# File 'lib/infinity_test/environment.rb', line 6

def environments(&block)
  raise unless block_given?
  RVM.environments(rubies).each do |environment|
    ruby_version = environment.environment_name
    block.call(environment, ruby_version)
  end
end