(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func Test_LoadConfig_WithNonExistantFile(t *testing.T) { |
| 17 | _, err := gin.LoadConfig("im/not/here.json") |
| 18 | |
| 19 | refute(t, err, nil) |
| 20 | expect(t, err.Error(), "Unable to read configuration file im/not/here.json") |
| 21 | } |
| 22 | |
| 23 | func Test_LoadConfig_WithMalformedFile(t *testing.T) { |
| 24 | _, err := gin.LoadConfig("test_fixtures/bad_config.json") |