From 9fe79d6fe2a87c43f92a3fe40dabdc2bd32bc730 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 3 Feb 2009 13:49:43 -0300 Subject: [PATCH] ActionItem918: removing test for blog in CMS --- test/functional/cms_controller_test.rb | 15 --------------- 1 file changed, 0 insertions(+), 15 deletions(-) diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 28ae3b6..7cd5f17 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -636,11 +636,6 @@ class CmsControllerTest < Test::Unit::TestCase assert_no_tag :tag => 'div', :descendant => { :tag => 'h4', :content => 'Categorize your article' } end - should 'offer to create a blog' do - get :index, :profile => profile.identifier - assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} - end - should 'not display input name on create blog' do get :new, :profile => profile.identifier, :type => 'Blog' assert_no_tag :tag => 'input', :attributes => { :name => 'article[name]', :type => 'text' } @@ -656,16 +651,6 @@ class CmsControllerTest < Test::Unit::TestCase assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} end - should 'not offer to create a blog if user already have' do - profile.articles << Blog.new(:name => 'blog test') - - profile.articles.reload - assert profile.has_blog? - - get :index, :profile => profile.identifier - assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} - end - should 'offer to edit a blog' do profile.articles << Blog.new(:name => 'blog test') -- libgit2 0.21.2