Skip to content

Commit

Permalink
Spec skeleton for Pocket
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Jul 21, 2008
1 parent a74da67 commit 9f394c6
Showing 1 changed file with 49 additions and 4 deletions.
53 changes: 49 additions & 4 deletions test/test_purse_pocket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,56 @@ class TestPursePocket < Test::Unit::TestCase
context "Purse" do
context "Pocket" do

should "be true" do
assert true
context "an instance" do
setup do
end

should "require a path" do
assert_raise(MissingParameter) do
Pocket.new(nil)
end
end

context "initialize" do
should "assign path to @path" do

end

should "find notes by Dir[]" do

end

should "load all notes in path to @notes" do

end

should "assign notes to an array in @notes" do

end
end

context "find" do

context "with a loaded note name" do
should "return the note" do

end
end

context "with an unknown note" do
should "raise error" do

end
end
end

context "re_encrypt" do
should_eventually "load all files and re-encrpyt them with a new password" do

end
end

end
should_eventually "create git repo"

end
end

Expand Down

0 comments on commit 9f394c6

Please sign in to comment.