kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
997 B
30 lines
997 B
13 years ago
|
#-- encoding: UTF-8
|
||
14 years ago
|
#-- copyright
|
||
|
# ChiliProject is a project management system.
|
||
14 years ago
|
#
|
||
14 years ago
|
# Copyright (C) 2010-2011 the ChiliProject Team
|
||
14 years ago
|
#
|
||
14 years ago
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License
|
||
|
# as published by the Free Software Foundation; either version 2
|
||
|
# of the License, or (at your option) any later version.
|
||
14 years ago
|
#
|
||
14 years ago
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
12 years ago
|
require File.expand_path('../../../test_helper', __FILE__)
|
||
14 years ago
|
|
||
12 years ago
|
class News::PreviewsControllerTest < ActionController::TestCase
|
||
14 years ago
|
fixtures :all
|
||
|
|
||
12 years ago
|
def test_create
|
||
|
post :create, :project_id => 1,
|
||
|
:news => { :title => '',
|
||
|
:description => 'News description',
|
||
|
:summary => '' }
|
||
14 years ago
|
assert_response :success
|
||
|
assert_template 'common/_preview'
|
||
|
assert_tag :tag => 'fieldset', :attributes => { :class => 'preview' },
|
||
|
:content => /News description/
|
||
|
end
|
||
14 years ago
|
end
|