Sha256: be3a433640aeed3a297993ae0c2870409146dc162fb8df8b2187ca90a3ca83ae
Contents?: true
Size: 780 Bytes
Versions: 3
Compression:
Stored size: 780 Bytes
Contents
require 'spec_helper' describe GitReflow::Config do describe ".get(key)" do subject { GitReflow::Config.get('chucknorris.roundhouse') } it { expect{ subject }.to have_run_command_silently 'git config --get chucknorris.roundhouse' } end describe ".set(key)" do subject { GitReflow::Config.set('chucknorris.roundhouse', 'to the face') } it { expect{ subject }.to have_run_command_silently 'git config --global --replace-all chucknorris.roundhouse "to the face"' } context "for current project only" do subject { GitReflow::Config.set('chucknorris.roundhouse', 'to the face', local: true) } it { expect{ subject }.to have_run_command_silently 'git config --replace-all chucknorris.roundhouse "to the face"' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_reflow-0.4.2 | spec/lib/git_reflow/config_spec.rb |
git_reflow-0.4.1 | spec/lib/git_reflow/config_spec.rb |
git_reflow-0.4.0 | spec/lib/git_reflow/config_spec.rb |