Sha256: 60f2e5b8be9e0f8a0fa85b0a71861b140e450ecc6cecc66ba14903d0a97665f0
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'git', type: :rake do before do load_default_config end describe 'git:clone' do it 'git clone' do expect { invoke_all }.to output(output_file('git_clone')).to_stdout end it 'git clone with commit' do Mina::Configuration.instance.set(:commit, '123456') expect { invoke_all }.to output(output_file('git_clone_commit')).to_stdout Mina::Configuration.instance.remove(:commit) end end describe 'git:revision' do it 'git revision' do expect { invoke_all }.to output(output_file('git_revision')).to_stdout end end describe 'git:ensure_pushed' do it 'git ensure pushed' do expect { invoke_all }.to output(output_file('git_ensure_pushed')).to_stdout end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-1.2.5 | spec/tasks/git_spec.rb |