Skip to content

Instantly share code, notes, and snippets.

@distributedlife
Created June 28, 2012 02:54
Show Gist options
  • Save distributedlife/3008535 to your computer and use it in GitHub Desktop.
Save distributedlife/3008535 to your computer and use it in GitHub Desktop.
tapestry specs
describe "a photo" do
it "should have a resource location"
it "should have EXIF data"
it "can include one or more people"
end
describe "a stack" do
it "should have at least one photo"
it "should have at least one bubbled photo"
it "can have zero or more sub stacks"
it "can have zero ore more tags"
it "can belong to one or more albums"
it "inherits albums from its parent"
it "inherits tags from its parent"
describe "a photo in a stack" do
it "should indicate if it is bubbled"
end
describe "when viewed as a stack" do
it "should show all bubbled images grouped"
end
describe "when viewing into the stack" do
it "should show all the bubbled images first"
it "should show all the non-bubbled images second"
end
end
describe "an album" do
it "has a name"
describe "when viewed" do
it "does a reduce using its criteria"
it "shows the top level stacks"
end
describe "can have a reduction criteria" do
describe "defined by" do
describe "including" do
it "stacks"
it "EXIF values"
it "albums"
it "people"
it "tags"
end
describe "excluding" do
it "EXIF values"
it "tags"
it "albums"
it "people"
it "stacks"
end
end
end
end
describe "a user" do
it "has zero or more stacks"
it "has zero or more albums"
describe "can" do
describe "stack photos 'as the same photo' do
it "should organise the photos as a stack"
it "should nest stacks of one of the photos was a stack"
it "should show the stack"
end
describe "stack photos 'of the same thing'" do
it "should organise the photos as a stack"
it "should nest stacks of one of the photos was a stack"
it "should show the stack"
end
describe "bubble a photo in a stack" do
it "should mark the photo as bubbled in the stack"
it "should bubble photos up from substacks without moving the photo from the substack"
end
describe "view a stack" do
it "and see all the albums the stack belongs to"
end
end
end
describe "the system can" do
describe "with EXIF data" do
it "should create an auto-album with all photos within the same year" do
#what happens to photos from different years that are in the same stack (of the same thing) that are from different years
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment