Browse Source

Fixed spelling and methods.

1) Apparently I can't splel. Just kidding. I can spell perfectly fine!
What I apparently can't do is combine multiple glyphs that start to look
an awful lot alike at 3am.

2) I was Post'ing instead of Get'ing in the unit test, leading to 405
Method Not Allowed.
master
Benjamin Shelton 3 weeks ago
parent
commit
87b5dacc45
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/configuration_test.go

+ 3
- 3
tests/configuration_test.go View File

@@ -31,7 +31,7 @@ func (c *ConfigurationController) Get(ctx capstan.Context) error {
return err
}

func Test_ConfiguationProperties(t *testing.T) {
func Test_ConfigurationProperties_BasePath(t *testing.T) {
config := NewServerConfig(&capstan.ServerConfig{
BasePath: "/root",
})
@@ -56,7 +56,7 @@ func Test_ConfiguationProperties(t *testing.T) {
requester := please.MakeRequest(server.URL)
requester.SetClient(server.Client())

req := requester.Post("/root/config")
req := requester.Get("/root/config")
response, err := req.Commit()
if err != nil {
t.Fatalf("unexpected error to response: %v", err)
@@ -66,7 +66,7 @@ func Test_ConfiguationProperties(t *testing.T) {
t.Errorf("expected status code 200 but received %d", response.StatusCode)
}

req = requester.Post("/root/sub/sub-config")
req = requester.Get("/root/sub/sub-config")
response, err = req.Commit()
if err != nil {
t.Fatalf("unexpected error to response: %v", err)


Loading…
Cancel
Save