Class: Avm::EacRubyBase1::Sources::Tests::Multiple::DecoratedGem

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb

Instance Method Summary collapse

Instance Method Details

#prepareObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb', line 13

def prepare
  return unless gemfile_path.exist?

  log('running "bundle install"...')
  return if bundle('install').execute.fetch(:exit_code).zero?

  unless can_remove_gemfile_lock?
    raise '"bundle install" failed and the Gemfile.lock is part of gem' \
      '(Should be changed by developer)'
  end

  prepare_with_removable_gemfile_lock
end

#testsObject



27
28
29
30
# File 'lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb', line 27

def tests
  [::Avm::EacRubyBase1::Sources::Tests::Minitest.new(__getobj__),
   ::Avm::EacRubyBase1::Sources::Tests::Rspec.new(__getobj__)]
end