From 138d90a887c1394e4cfa72aa3d419573dad75820 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 25 Jul 2014 10:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20140725013735_alter_first_page.rb | 5 ++ test/fixtures/contest_notifications.yml | 9 ++++ test/fixtures/option_numbers.yml | 47 +++++++++++++++++++ test/unit/contest_notification_test.rb | 7 +++ test/unit/option_number_test.rb | 7 +++ 5 files changed, 75 insertions(+) create mode 100644 db/migrate/20140725013735_alter_first_page.rb create mode 100644 test/fixtures/contest_notifications.yml create mode 100644 test/fixtures/option_numbers.yml create mode 100644 test/unit/contest_notification_test.rb create mode 100644 test/unit/option_number_test.rb diff --git a/db/migrate/20140725013735_alter_first_page.rb b/db/migrate/20140725013735_alter_first_page.rb new file mode 100644 index 000000000..fc6534f14 --- /dev/null +++ b/db/migrate/20140725013735_alter_first_page.rb @@ -0,0 +1,5 @@ +class AlterFirstPage < ActiveRecord::Migration + def change + change_column("first_pages","description",:text) + end +end diff --git a/test/fixtures/contest_notifications.yml b/test/fixtures/contest_notifications.yml new file mode 100644 index 000000000..a2c6cecc7 --- /dev/null +++ b/test/fixtures/contest_notifications.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html + +one: + title: MyString + content: MyString + +two: + title: MyString + content: MyString diff --git a/test/fixtures/option_numbers.yml b/test/fixtures/option_numbers.yml new file mode 100644 index 000000000..630ae45f0 --- /dev/null +++ b/test/fixtures/option_numbers.yml @@ -0,0 +1,47 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html + +one: + user_id: MyString + memo: 1 + messages_for_issues: 1 + issues_status: 1 + replay_for_message: 1 + replay_for_memo: 1 + follow: 1 + tread: 1 + praise_by_one: 1 + praise_by_two: 1 + praise_by_three: 1 + tread_by_one: 1 + tread_by_two: 1 + tread_by_three: 1 + changeset: 1 + document: 1 + attachment: 1 + issue_done_ratio: 1 + post_issue: 1 + score_type: 1 + total_score: 1 + +two: + user_id: MyString + memo: 1 + messages_for_issues: 1 + issues_status: 1 + replay_for_message: 1 + replay_for_memo: 1 + follow: 1 + tread: 1 + praise_by_one: 1 + praise_by_two: 1 + praise_by_three: 1 + tread_by_one: 1 + tread_by_two: 1 + tread_by_three: 1 + changeset: 1 + document: 1 + attachment: 1 + issue_done_ratio: 1 + post_issue: 1 + score_type: 1 + total_score: 1 diff --git a/test/unit/contest_notification_test.rb b/test/unit/contest_notification_test.rb new file mode 100644 index 000000000..df3b26916 --- /dev/null +++ b/test/unit/contest_notification_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ContestNotificationTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/unit/option_number_test.rb b/test/unit/option_number_test.rb new file mode 100644 index 000000000..3673ebf3e --- /dev/null +++ b/test/unit/option_number_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class OptionNumberTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end