Sha256: bf68ffad1775f5df9960cc86dbb7beef517b01a64d7021b78aeb99fc1dcd0fcc
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 Bytes
Contents
require 'spec_helper' require 'lock_jar/bundler' require 'bundler/cli' require 'bundler/cli/install' describe LockJar::Bundler do include Spec::Helpers describe '.lock!' do before do remove_file('Jarfile.lock') LockJar::Bundler.lock!('spec/fixtures/Jarfile') end it 'should create Jarfile.lock' do expect(File).to exist('Jarfile.lock') end end describe '.lock_with_bundler' do it 'should call lock! from Bundler' do LockJar::Bundler.lock_with_bundler(test: :arg) expect(LockJar::Bundler).to receive(:lock!).with([{ test: :arg }]) ::Bundler::CLI::Install.new({}).run end context 'with Bundler.setup' do it 'should not call lock!' do LockJar::Bundler.lock_with_bundler(test: :arg) expect(LockJar::Bundler).to_not receive(:lock!).with([{ test: :arg }]) ::Bundler::setup end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lock_jar-0.14.4 | spec/lock_jar/bundler_spec.rb |