diff options
author | bry4n <bryann83@gmail.com> | 2012-07-31 09:51:59 +0400 |
---|---|---|
committer | bry4n <bryann83@gmail.com> | 2012-07-31 09:51:59 +0400 |
commit | 936bc5db29eda98503f0121a1d940c915eea0de9 (patch) | |
tree | efab428ca5eeacce43f6ebdb18df4757ae0c7610 /test | |
parent | 43bbbf451dc60cbd582a8ed20f027f39dea88bd8 (diff) |
partially clean up the routes for downloads and blog page
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/blog_controller_test.rb | 10 | ||||
-rw-r--r-- | test/functional/doc_controller_test.rb | 5 | ||||
-rw-r--r-- | test/unit/helpers/blog_helper_test.rb | 4 |
3 files changed, 14 insertions, 5 deletions
diff --git a/test/functional/blog_controller_test.rb b/test/functional/blog_controller_test.rb new file mode 100644 index 00000000..fccc2ce4 --- /dev/null +++ b/test/functional/blog_controller_test.rb @@ -0,0 +1,10 @@ +require 'test_helper' + +class BlogControllerTest < ActionController::TestCase + + test "gets the blog page" do + get :progit, :year => 2009, :month => '02', :day => 11, :slug => "moved-to-github-pages" + assert_response :success + end + +end diff --git a/test/functional/doc_controller_test.rb b/test/functional/doc_controller_test.rb index a1ca8d71..a9c5d4a5 100644 --- a/test/functional/doc_controller_test.rb +++ b/test/functional/doc_controller_test.rb @@ -35,11 +35,6 @@ class DocControllerTest < ActionController::TestCase assert_redirected_to '/docs/git-commit' end - test "gets the blog page" do - get :blog, :year => 2009, :month => '02', :day => 11, :slug => "moved-to-github-pages" - assert_response :success - end - test "gets the reference page" do get :ref assert_response :success diff --git a/test/unit/helpers/blog_helper_test.rb b/test/unit/helpers/blog_helper_test.rb new file mode 100644 index 00000000..26569397 --- /dev/null +++ b/test/unit/helpers/blog_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class BlogHelperTest < ActionView::TestCase +end |