Commit 9fe79d6fe2a87c43f92a3fe40dabdc2bd32bc730
1 parent
1d8ee3ac
Exists in
master
and in
29 other branches
ActionItem918: removing test for blog in CMS
Showing
1 changed file
with
0 additions
and
15 deletions
Show diff stats
test/functional/cms_controller_test.rb
... | ... | @@ -636,11 +636,6 @@ class CmsControllerTest < Test::Unit::TestCase |
636 | 636 | assert_no_tag :tag => 'div', :descendant => { :tag => 'h4', :content => 'Categorize your article' } |
637 | 637 | end |
638 | 638 | |
639 | - should 'offer to create a blog' do | |
640 | - get :index, :profile => profile.identifier | |
641 | - assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} | |
642 | - end | |
643 | - | |
644 | 639 | should 'not display input name on create blog' do |
645 | 640 | get :new, :profile => profile.identifier, :type => 'Blog' |
646 | 641 | assert_no_tag :tag => 'input', :attributes => { :name => 'article[name]', :type => 'text' } |
... | ... | @@ -656,16 +651,6 @@ class CmsControllerTest < Test::Unit::TestCase |
656 | 651 | assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} |
657 | 652 | end |
658 | 653 | |
659 | - should 'not offer to create a blog if user already have' do | |
660 | - profile.articles << Blog.new(:name => 'blog test') | |
661 | - | |
662 | - profile.articles.reload | |
663 | - assert profile.has_blog? | |
664 | - | |
665 | - get :index, :profile => profile.identifier | |
666 | - assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/new?type=Blog"} | |
667 | - end | |
668 | - | |
669 | 654 | should 'offer to edit a blog' do |
670 | 655 | profile.articles << Blog.new(:name => 'blog test') |
671 | 656 | ... | ... |