Sha256: 1a9d8495fababe5852fbe1e2064dde4a2641bc21240d136a24fadd46062cbad6
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require 'spec_helper' require 'bundler/geminabox/cli' describe Bundler::Geminabox::CLI do BIN_DIR = File.join(ROOT, 'bin') TMP_DIR = File.join(ROOT, 'foo') context 'bundle-geminabox gem' do before :all do system("GEMINABOX=https://rubygems.mydomain.com #{File.join(BIN_DIR, 'bundle-geminabox')} gem foo") end after :all do FileUtils.rm_r(File.join(ROOT, 'foo')) end context 'Gemfile' do subject { File.read(File.join(TMP_DIR, 'Gemfile')) } it { expect(subject).to include("source 'https://rubygems.mydomain.com'") } end context 'Rakefile' do subject { File.read(File.join(TMP_DIR, 'Rakefile')) } it { expect(subject).to include('require "bundler/geminabox/gem_tasks"') } end end end
Version data entries
5 entries across 5 versions & 1 rubygems