ensure rackspace tests use new fixture
diff --git a/rackspace/objectstorage/v1/objects/delegate_test.go b/rackspace/objectstorage/v1/objects/delegate_test.go
index 3431056..21cd417 100644
--- a/rackspace/objectstorage/v1/objects/delegate_test.go
+++ b/rackspace/objectstorage/v1/objects/delegate_test.go
@@ -66,21 +66,23 @@
func TestCreateObject(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
- os.HandleCreateTextObjectSuccessfully(t)
+
+ content := "Did gyre and gimble in the wabe"
+ os.HandleCreateTextObjectSuccessfully(t, content)
- content := strings.NewReader("Did gyre and gimble in the wabe")
options := &os.CreateOpts{ContentType: "text/plain"}
- res := Create(fake.ServiceClient(), "testContainer", "testObject", content, options)
+ res := Create(fake.ServiceClient(), "testContainer", "testObject", strings.NewReader(content), options)
th.AssertNoErr(t, res.Err)
}
func TestCreateObjectWithoutContentType(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
- os.HandleCreateTypelessObjectSuccessfully(t)
- content := strings.NewReader("The sky was the color of television, tuned to a dead channel.")
- res := Create(fake.ServiceClient(), "testContainer", "testObject", content, &os.CreateOpts{})
+ content := "The sky was the color of television, tuned to a dead channel."
+ os.HandleCreateTypelessObjectSuccessfully(t, content)
+
+ res := Create(fake.ServiceClient(), "testContainer", "testObject", strings.NewReader(content), &os.CreateOpts{})
th.AssertNoErr(t, res.Err)
}