Sha256: b06c81b303bbff05902ec4931c4c6e434b63d97b584ae76640c3efd81a255bed

Contents?: true

Size: 717 Bytes

Versions: 8

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_ruby_base1/sources/base'

RSpec.describe Avm::EacRubyBase1::Sources::Base, '#bundler' do
  let(:mygem_path) { Pathname.new(__dir__).join('bundler_spec_files', 'mygem') }
  let(:mygem) { described_class.new(mygem_path) }

  before do
    mygem.bundle.execute!
  end

  describe '#bundle' do
    specify do
      expect(mygem.bundle('exec', 'myrunner').execute!).to include('My Runner')
    end
  end

  describe '#gemfile_source' do
    it do
      expect(mygem.gemfile_source).to eq(Addressable::URI.parse('https://rubygems.org'))
    end
  end

  describe '#rake' do
    specify do
      expect(mygem.rake('mygem:stub').execute!).to include('Stub!')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eac_tools-0.96.1 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.83.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.82.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.81.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb
eac_tools-0.80.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb