(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func Test_LoadConfig_WithMalformedFile(t *testing.T) { |
| 24 | _, err := gin.LoadConfig("test_fixtures/bad_config.json") |
| 25 | |
| 26 | refute(t, err, nil) |
| 27 | expect(t, err.Error(), "Unable to parse configuration file test_fixtures/bad_config.json") |
| 28 | } |