Sha256: 7c5afe28b3a4d8f37f5643b927c3ec6c13047721cac399987db6bc264d79e8fb
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' require 'state_mate/adapters/git_config' describe "StateMate::Adapters::GitConfig.read" do include_context "git_config" it "reads a missing key as nil" do expect( git_config.read key ).to eq nil end it "should error on a bad key" do # can't have underscore in the name expect{ git_config.read "state_mate.test" }.to raise_error SystemCallError end it "should read a present value" do value = "blah" `git config --global --add #{ key } #{ value }` expect( git_config.read key ).to eq value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
state_mate-0.0.3 | spec/state_mate/adapters/git_config/read_spec.rb |
state_mate-0.0.2 | spec/state_mate/adapters/git_config/read_spec.rb |