プロジェクト

全般

プロフィール

« | » 

リビジョン d06f281f

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

Fix unit tests' fixture, remove unexist table(model)'s test

差分を表示:

test/fixtures/glossary_styles.yml
one:
id: 1
show_desc:
gropby:
groupby:
project_scope: 1
sort_item_0: MyString
sort_item_1: MyString
......
two:
id: 2
show_desc:
gropby:
groupby:
project_scope: 1
sort_item_0: MyString
sort_item_1: MyString
test/fixtures/grossary_styles.yml
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
id: 1
show_desc:
gropby:
project_scope: 1
sort_item_0: MyString
sort_item_1: MyString
sort_item_2: MyString
user_id: 1
two:
id: 2
show_desc:
gropby:
project_scope: 1
sort_item_0: MyString
sort_item_1: MyString
sort_item_2: MyString
user_id: 1
test/fixtures/term_queries.yml
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
id: 1
show_desc:
categorized:
all_project:
search_str:
search_category:
sort_items: MyString
two:
id: 2
show_desc:
categorized:
all_project:
search_str:
search_category:
sort_items: MyString
test/fixtures/terms.yml
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
id: 1
project_id:
project_id: 1
category_id:
author_id:
author_id: 3
updater_id:
name:
name: term one
name_en:
codename:
description:
......
updated_on: 2010-12-13 21:25:16
two:
id: 2
project_id:
project_id: 2
category_id:
author_id:
author_id: 2
updater_id:
name:
name: term two
name_en:
codename:
description:
test/unit/grossary_style_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class GrossaryStyleTest < ActiveSupport::TestCase
fixtures :grossary_styles
# Replace this with your real tests.
def test_truth
assert true
end
end
test/unit/term_query_test.rb
require File.dirname(__FILE__) + '/../test_helper'
class TermQueryTest < ActiveSupport::TestCase
plugin_fixtures :term_queries
# Replace this with your real tests.
def test_truth
assert true
end
end

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