diff --git a/test/test_tags.rb b/test/test_tags.rb index 97c82b91..7f2dd4d5 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -259,115 +259,6 @@ CONTENT end end - context "gist tag" do - context "simple" do - setup do - @gist = 358471 - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - - should "write script tag" do - assert_match "", @result - end - end - - context "for private gist" do - context "when valid" do - setup do - @gist = "mattr-/24081a1d93d2898ecf0f" - @filename = "myfile.ext" - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - - should "write script tag with specific file in gist" do - assert_match "", @result - end - end - - should "raise ArgumentError when invalid" do - @gist = "mattr-24081a1d93d2898ecf0f" - @filename = "myfile.ext" - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - end - end - - context "with specific file" do - setup do - @gist = 358471 - @filename = 'somefile.rb' - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - - should "write script tag with specific file in gist" do - assert_match "", @result - end - end - - context "with blank gist id" do - should "raise ArgumentError" do - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - end - end - - context "with invalid gist id" do - should "raise ArgumentError" do - invalid_gist = 'invalid' - content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) - end - end - end - end - context "include tag with parameters" do context "with symlink'd include" do