Sha256: 775dc2ebeb1738a62a983b72ca59a9b82df4f65961402c1c896b87375fdd1af4
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'state_mate' require 'nrser' DOMAIN = 'com.nrser.state_mate' shared_context "#{ DOMAIN } empty" do before(:each) { `defaults delete #{ DOMAIN } 2>&1 > /dev/null` `defaults -currentHost delete #{ DOMAIN } 2>&1 > /dev/null` } end shared_context "defaults" do let(:defaults) { StateMate::Adapters::Defaults } end shared_context "git_config" do let(:git_config) { StateMate::Adapters::GitConfig } let(:section) { "statemate" } let(:key) { "#{ section }.test" } before(:each) { `git config --global --unset-all #{ key } 2>&1` } after(:each) { `git config --global --unset-all #{ key } 2>&1` `git config --global --remove-section #{ section } 2>&1` } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
state_mate-0.0.1 | spec/spec_helper.rb |