Skip to content

Commit

Permalink
stopped test from blowing away config
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegin committed Apr 12, 2017
1 parent 3fecf5a commit c73cfba
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import (

func TestShouldWriteAndReadProperty(t *testing.T) {
c := NewConfig()
c.configFileName = ".graven_test.yml"
c.Set("foo", "bar", "baz")
c.Write()
c2 := NewConfig()
c2.configFileName = ".graven_test.yml"
c2.Read()
assert.Equal(t, "baz", c2.Get("foo", "bar"))
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c73cfba

Please sign in to comment.