diff options
Diffstat (limited to 'vendor/_nuts/github.com/go-martini/martini/env_test.go')
| -rw-r--r-- | vendor/_nuts/github.com/go-martini/martini/env_test.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/_nuts/github.com/go-martini/martini/env_test.go b/vendor/_nuts/github.com/go-martini/martini/env_test.go new file mode 100644 index 0000000..d82351e --- /dev/null +++ b/vendor/_nuts/github.com/go-martini/martini/env_test.go @@ -0,0 +1,28 @@ +package martini + +import ( + "testing" +) + +func Test_SetENV(t *testing.T) { + tests := []struct { + in string + out string + }{ + {"", "development"}, + {"not_development", "not_development"}, + } + + for _, test := range tests { + setENV(test.in) + if Env != test.out { + expect(t, Env, test.out) + } + } +} + +func Test_Root(t *testing.T) { + if len(Root) == 0 { + t.Errorf("Expected root path will be set") + } +} |
