Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-02-08 12:10:52 +0300
committerJeff King <peff@peff.net>2018-02-08 12:25:27 +0300
commitdd8b9d57e68aa755f6a12e99a26588f87d3598a0 (patch)
treedcb44d633b045e0537a235823163cd1cbb2eb08f /test
parent46247ff2a867e6afc9365fa61d9ec05585b680bf (diff)
drop blog content
There hasn't been a blog post in 7 years, and there are no plans to revive it. The existing posts generally fall into one of two categories: - news about the pro git book - technical notes that weren't covered in the 1st edition of pro git The former are no longer interesting at all. And the latter had their content folded into the second edition. So let's drop this content, as we sometimes get issues raised about its accuracy and formatting. We want to redirect people to the actually-maintained book content. We'll put a short note in the /blog route to help anybody who follows old links to these posts.
Diffstat (limited to 'test')
-rw-r--r--test/functional/blog_controller_test.rb20
-rw-r--r--test/unit/presenters/blog_presenter_test.rb30
2 files changed, 0 insertions, 50 deletions
diff --git a/test/functional/blog_controller_test.rb b/test/functional/blog_controller_test.rb
deleted file mode 100644
index 018f8a41..00000000
--- a/test/functional/blog_controller_test.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'test_helper'
-
-class BlogControllerTest < ActionController::TestCase
-
- test "gets the blog index page" do
- get :index
- assert_response :success
- end
-
- test "gets the blog page" do
- get :post, :year => 2009, :month => '02', :day => 11, :slug => "moved-to-github-pages"
- assert_response :success
- end
-
- test "gets the blog feed" do
- get :feed
- assert_response :success
- end
-
-end
diff --git a/test/unit/presenters/blog_presenter_test.rb b/test/unit/presenters/blog_presenter_test.rb
deleted file mode 100644
index 2e32ad3b..00000000
--- a/test/unit/presenters/blog_presenter_test.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require 'test_helper'
-
-class BlogPresenterTest < ActiveSupport::TestCase
-
- setup do
- @good = ["2010", "08", "25", "notes"] * "-"
- @bad = ["2015", "01", "01", "failing-test"] * "-"
- end
-
- test "file should be existed" do
- blog = BlogPresenter.new(@good)
- assert_equal blog.exists?, true
- end
-
- test "file should not be existed" do
- blog = BlogPresenter.new(@bad)
- assert_equal blog.exists?, false
- end
-
- test "file should have content" do
- blog = BlogPresenter.new(@good)
- assert_not_nil blog.render
- end
-
- test "file should have no content" do
- blog = BlogPresenter.new(@bad)
- assert_nil blog.render
- end
-
-end