Skip to content

Instantly share code, notes, and snippets.

@dwaynemac
Created November 3, 2011 19:58
Show Gist options
  • Save dwaynemac/1337612 to your computer and use it in GitHub Desktop.
Save dwaynemac/1337612 to your computer and use it in GitHub Desktop.
# In CONTACTS WS
# V0::ContactsController
# POST create
# if it recieves image
# should store it on amazon and link it to contact
# PUT update
# if it recieves image
# should store it on amazon and link it to contact
# should delete previous image
# DELETE destroy
# if contact has an image
# image should be deleted from amazon
describe V0::ContactsController do
describe "POST create" do
context "if it recieves image" do
it "should store it on amazon and link it to contact"
end
end
describe "PUT update" do
context "if it recieves image" do
it "should store it on amazon and link it to contact"
it "should delete previous image"
end
end
describe "DELETE destroy" do
context "if contact has an image" do
it "should be deleted from amazon"
end
end
end
# In CRM
# ContactsController
# POST create
# if it recieves image
# should store it on contact
# PUT update
# if it recieves image
# should link it to contact
# should delete previous image
# DELETE destroy
# if contact has an image
# image should be deleted from amazon
describe ContactsController do
describe "POST create" do
context "if it recieves image" do
it "should store it on contacts"
end
end
describe "PUT update" do
context "if it recieves image"
it "should link it to contact"
it "should delete previous image"
end
end
describe "DELETE destroy" do
context "if contact has an image"
it "should delete image"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment