From 533ed6eb3825ea469dc0584571ef8d44b4e5f284 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 10 Aug 2014 14:46:06 -0400 Subject: [PATCH] Remove tests for the Command.ignored_paths method which now lives in jekyll-watch. --- test/test_command.rb | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/test/test_command.rb b/test/test_command.rb index 8d1a751d..10ecccc4 100644 --- a/test/test_command.rb +++ b/test/test_command.rb @@ -1,38 +1,6 @@ require 'helper' class TestCommand < Test::Unit::TestCase - context "when calling .ignore_paths" do - context "when source is absolute" do - setup { @source = source_dir } - should "return an array with regex for destination" do - absolute = source_dir('dest') - relative = Pathname.new(source_dir('dest')).relative_path_from(Pathname.new('.').expand_path).to_s - [absolute, relative].each do |dest| - config = build_configs("source" => @source, "destination" => dest) - assert Command.ignore_paths(config).include?(/dest/), "failed with destination: #{dest}" - end - end - end - context "when source is relative" do - setup { @source = Pathname.new(source_dir).relative_path_from(Pathname.new('.').expand_path).to_s } - should "return an array with regex for destination" do - absolute = source_dir('dest') - relative = Pathname.new(source_dir('dest')).relative_path_from(Pathname.new('.').expand_path).to_s - [absolute, relative].each do |dest| - config = build_configs("source" => @source, "destination" => dest) - assert Command.ignore_paths(config).include?(/dest/), "failed with destination: #{dest}" - end - end - end - context "multiple config files" do - should "return an array with regex for config files" do - config = build_configs("config"=> ["_config.yaml", "_config2.yml"]) - ignore_paths = Command.ignore_paths(config) - assert ignore_paths.include?(/_config\.yaml/), 'did not include _config.yaml' - assert ignore_paths.include?(/_config2\.yml/), 'did not include _config2.yml' - end - end - end context "when calling .add_build_options" do should "add common options" do cmd = Object.new