プロジェクト

全般

プロフィール

« | » 

リビジョン 05fddbda

高徹 高橋 徹 さんが7年以上前に追加

Make functional test for term_categories. Remove unuse test file

差分を表示:

test/functional/glossray_styles_controller_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class GlossrayStylesControllerTest < ActionController::TestCase
# Replace this with your real tests.
def test_truth
assert true
end
end
test/functional/term_categories_controller_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class TermCategoriesControllerTest < ActionController::TestCase
# Replace this with your real tests.
def test_truth
assert true
fixtures :projects, :users, :roles, :members, :member_roles
def setup
@project = projects('projects_001')
@project.enabled_module_names = [:glossary]
roles('roles_001').add_permission! :manage_term_categories
end
def test_index_response
@request.session[:user_id] = users('users_002').id
get :index, params: { project_id: 1 }
assert_response :success
end
end
test/functional/term_queries_controller_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class TermQueriesControllerTest < ActionController::TestCase
# Replace this with your real tests.
def test_truth
assert true
end
end

他の形式にエクスポート: Unified diff