diff options
| author | Teddy Wing | 2015-06-06 19:25:17 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-06-06 19:25:17 -0400 | 
| commit | 1135764727f3dc525d0f674c784edbc81cc786f3 (patch) | |
| tree | 5c402c88d3a07a3cde84237ead5829bda28f3e25 /vendor/_nuts/github.com/go-martini/martini/env_test.go | |
| download | New-House-on-the-Block-1135764727f3dc525d0f674c784edbc81cc786f3.tar.bz2 | |
Initial commit. Install coinbase-go.
* Use nut for vendored dependencies
* Install coinbase-go to interact with the Coinbase API
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") +	} +} | 
