From 4f417493dfab81e9fb94df30b86224fa3b5c0087 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 30 Dec 2017 23:35:56 -0500 Subject: [PATCH] Remove maid_spec.cr I'm removing tests for now since I'm not sure how to implement them in a reasonable way. Most of the programs in src/ work with the file system directly and in a very specific manner. In the future I may write tests for the programs in src/ if they ever become used enough to warrant a formal specification. --- spec/maid_spec.cr | 83 ----------------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 spec/maid_spec.cr diff --git a/spec/maid_spec.cr b/spec/maid_spec.cr deleted file mode 100644 index fb272caf..00000000 --- a/spec/maid_spec.cr +++ /dev/null @@ -1,83 +0,0 @@ -require "spec" -require "../src/maid" - -# Note that #up, #down, and #status share many of the same tests. This means that -# the "fail early" functionality should probably be abstracted into another method -# that all of the methods depend on - -describe "Maid" do - describe "#up" do - it "should change the file upstream" do - - end - - it "should not change the file downstream" do - - end - - it "should not change anything if both files are the same" do - - end - - it "should fail early if the file upstream doesn't exist" do - - end - - it "should fail early if the file downstream doesn't exist" do - - end - - it "should fail early if the given argument isn't a file" do - - end - end - - describe "#down" do - it "should change the file downstream" do - - end - - it "should not change the file upstream" do - - end - - it "should not do anything if both files are the same" do - - end - - it "should fail early if the file upstream doesn't exist" do - - end - - it "should fail early if the file downstream doesn't exist" do - - end - - it "should fail early if the given argument isn't a file" do - - end - end - - describe "#status" do - it "should not modify the file upstream" do - - end - - it "should not modify the file downstream" do - - end - - it "should fail early if the file upstream doesn't exist" do - - end - - it "should fail early if the file downstream doesn't exist" do - - end - - it "should fail early if the given argument isn't a file" do - - end - end -end -