Merge branch 'szzh' into develop
This commit is contained in:
commit
6fc496c8ee
51
Gemfile
51
Gemfile
|
@ -1,4 +1,5 @@
|
|||
source 'https://rubygems.org'
|
||||
source 'http://ruby.taobao.org'
|
||||
#source 'http://ruby.sdutlinux.org/'
|
||||
|
||||
unless RUBY_PLATFORM =~ /w32/
|
||||
# unix-like only
|
||||
|
@ -15,23 +16,42 @@ gem "coderay", "~> 1.0.6"
|
|||
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
||||
gem "builder", "3.0.0"
|
||||
gem 'acts-as-taggable-on', '2.4.1'
|
||||
gem 'spreadsheet'
|
||||
gem 'ruby-ole'
|
||||
|
||||
group :development do
|
||||
gem 'better_errors', path: 'lib/better_errors'
|
||||
gem 'rack-mini-profiler', path: 'lib/rack-mini-profiler'
|
||||
if ENV['PRY']
|
||||
gem 'pry'
|
||||
gem 'pry-nav'
|
||||
end
|
||||
end
|
||||
|
||||
group :test do
|
||||
# shoulda的版本做了改动
|
||||
#gem "shoulda", "~> 3.3.2"
|
||||
gem "shoulda", "> 3.3.2"
|
||||
gem "mocha", "~> 0.13.3"
|
||||
gem 'capybara', '~> 2.0.0'
|
||||
gem 'nokogiri', '< 1.6.0'
|
||||
gem "shoulda", "~> 3.5.0"
|
||||
gem "mocha", "~> 1.1.0"
|
||||
gem 'capybara', '~> 2.4.1'
|
||||
gem 'nokogiri', '~> 1.6.3'
|
||||
gem 'factory_girl', '~> 4.4.0'
|
||||
gem 'selenium-webdriver', '~> 2.42.0'
|
||||
|
||||
|
||||
platforms :mri, :mingw do
|
||||
group :rmagick do
|
||||
# RMagick 2 supports ruby 1.9
|
||||
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
|
||||
# different requirements for the same gem on different platforms
|
||||
gem "rmagick", ">= 2.0.0"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
group :development, :test do
|
||||
gem "guard-rails", '~> 0.5.3'
|
||||
gem 'spork-testunit', '~> 0.0.8'
|
||||
gem 'guard-spork', '~> 1.5.1'
|
||||
gem 'guard-test', '~> 1.0.0'
|
||||
gem 'ruby-prof', '~> 0.15.1' unless RUBY_PLATFORM =~ /w32/
|
||||
gem 'pry'
|
||||
gem 'pry-nav'
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
@ -53,15 +73,6 @@ group :ldap do
|
|||
end
|
||||
|
||||
|
||||
platforms :mri, :mingw do
|
||||
group :rmagick do
|
||||
# RMagick 2 supports ruby 1.9
|
||||
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
|
||||
# different requirements for the same gem on different platforms
|
||||
gem "rmagick", ">= 2.0.0"
|
||||
end
|
||||
end
|
||||
|
||||
# Optional gem for OpenID authentication
|
||||
group :openid do
|
||||
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
||||
|
|
|
@ -150,6 +150,7 @@ class MyController < ApplicationController
|
|||
File.delete(diskfile1)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Destroys user's account
|
||||
|
|
|
@ -78,7 +78,10 @@
|
|||
</span>
|
||||
作品描述 :
|
||||
</label>
|
||||
<%= f.text_area "description", :class => "w620", :style=>"width:432px;", :maxlength => 3000, :placeholder => "最多3000个汉字", :onkeyup => "regexDescription();"%>
|
||||
<%= f.text_area "description", :class => "w620", :maxlength => 3000, :style => "width:430px", :placeholder => "最多3000个汉字", :onkeyup => "regexDescription();"%>
|
||||
<br />
|
||||
<span id="homework_attach_description_span" style="padding-left: 100px;"></span>
|
||||
</p>
|
||||
<br/> <span id="homework_attach_description_span" style="padding-left: 100px;"></span>
|
||||
</p>
|
||||
<div class="cl"></div>
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
</head>
|
||||
<!--add by huang-->
|
||||
<body class="<%= h body_css_classes %>">
|
||||
<%= render :partial => 'courses/course_ad' %>
|
||||
<div id="wrapper">
|
||||
<div id="wrapper2">
|
||||
<div id="wrapper3">
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<%=l(:label_contests_management_platform)%>
|
||||
</a> >
|
||||
<span title="<%= @contest.name%>">
|
||||
<%= link_to h(truncate(@contest.name, length: 20, omission: '...')), show_contest_contest_path(@contest) %>
|
||||
<%= link_to h(truncate(@contest.name, length: 20, omission: '...')), contest_contestnotifications_path(@contest) %>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ajax-indicator" ><span><%= l(:label_loading) %></span></div>
|
||||
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
||||
<div id="ajax-modal" style="display:none;"></div>
|
||||
|
||||
|
||||
|
|
|
@ -97,8 +97,10 @@ table.annotate td.author {
|
|||
background: inherit;
|
||||
}
|
||||
|
||||
|
||||
table.annotate td.line-code { background-color: #fafafa; word-break: break-all;}
|
||||
|
||||
|
||||
div.action_M { background: #fd8 }
|
||||
div.action_D { background: #f88 }
|
||||
div.action_A { background: #bfb }
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
one:
|
||||
|
||||
act_id:
|
||||
act_type: MyString
|
||||
user_id:
|
||||
|
||||
two:
|
||||
act_id:
|
||||
act_type: MyString
|
||||
user_id:
|
||||
|
||||
id: 1
|
||||
act_id: 1
|
||||
act_type: JournalsForMessage
|
||||
|
@ -10,3 +20,4 @@ two:
|
|||
act_id: 2
|
||||
act_type: JournalsForMessage
|
||||
user_id: 5
|
||||
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
<<<<<<< HEAD
|
||||
one:
|
||||
typeId: 1
|
||||
typeName: MyString
|
||||
|
||||
two:
|
||||
typeId: 1
|
||||
typeName: MyString
|
||||
=======
|
||||
courses_001_infos:
|
||||
id: 1
|
||||
course_id: 1
|
||||
|
@ -13,3 +22,4 @@ courses_002_infos:
|
|||
created_at: 2013-09-30 15:36:00
|
||||
updated_at: 2014-04-19 01:50:41
|
||||
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0
|
||||
|
|
|
@ -1,10 +1,24 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
<<<<<<< HEAD
|
||||
|
||||
one:
|
||||
=======
|
||||
courses_001_statuses:
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0
|
||||
changesets_count: 1
|
||||
watchers_count: 1
|
||||
course_id: 1
|
||||
grade: 1.5
|
||||
course_ac_para: 1
|
||||
<<<<<<< HEAD
|
||||
|
||||
two:
|
||||
changesets_count: 1
|
||||
watchers_count: 1
|
||||
course_id: 1
|
||||
grade: 1.5
|
||||
course_ac_para: 1
|
||||
=======
|
||||
created_at: 2013-09-30 15:36:00
|
||||
updated_at: 2014-04-19 01:50:41
|
||||
|
||||
|
@ -16,3 +30,4 @@ courses_002_statuses:
|
|||
course_ac_para: 1
|
||||
created_at: 2013-09-30 15:36:00
|
||||
updated_at: 2014-04-19 01:50:41
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
<<<<<<< HEAD
|
||||
one:
|
||||
name:
|
||||
province: MyString
|
||||
|
||||
two:
|
||||
name:
|
||||
province: MyString
|
||||
=======
|
||||
school_117:
|
||||
id: 117
|
||||
name: 国防科学技术大学
|
||||
|
@ -11,3 +20,4 @@ school_001:
|
|||
name: 摧毁地球人学校
|
||||
province: 火星
|
||||
logo_link:
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0
|
||||
|
|
|
@ -1,3 +1,44 @@
|
|||
<<<<<<< HEAD
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
person_one_extra:
|
||||
id: 44
|
||||
user_id: 29
|
||||
birthday: "2013-09-30 21:19:25"
|
||||
brief_introduction: nil
|
||||
gender: 1
|
||||
location: "江苏"
|
||||
occupation: ""
|
||||
work_experience: nil
|
||||
zip_code: nil
|
||||
created_at: "2013-09-30 21:19:25"
|
||||
updated_at: "2013-10-09 19:00:06"
|
||||
technical_title: nil
|
||||
identity: 2
|
||||
student_id: nil
|
||||
teacher_realname: nil
|
||||
student_realname: nil
|
||||
location_city: "南京"
|
||||
|
||||
person_mao_extra:
|
||||
id: 22
|
||||
user_id: 193
|
||||
birthday: "2013-09-30 21:19:25"
|
||||
brief_introduction: "期待..."
|
||||
gender: 0
|
||||
location: "湖南长沙"
|
||||
occupation: "国防科技大学计算机学院"
|
||||
work_experience: nil
|
||||
zip_code: nil
|
||||
created_at: "2013-09-30 21:19:25"
|
||||
updated_at: "2013-10-09 19:00:06"
|
||||
technical_title: "教授"
|
||||
identity: 0
|
||||
student_id: nil
|
||||
teacher_realname: nil
|
||||
student_realname: nil
|
||||
location_city: nil
|
||||
=======
|
||||
user_extension_006:
|
||||
id: 6
|
||||
user_id: 6
|
||||
|
@ -55,3 +96,4 @@ user_extension_025:
|
|||
student_realname: 'ue_realname'
|
||||
location_city: 哈尔滨
|
||||
school_id: 117
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AppliedProjectControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ApplyProjectMastersControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@apply_project_master = apply_project_masters(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:apply_project_masters)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create apply_project_master" do
|
||||
assert_difference('ApplyProjectMaster.count') do
|
||||
post :create, apply_project_master: { }
|
||||
end
|
||||
|
||||
assert_redirected_to apply_project_master_path(assigns(:apply_project_master))
|
||||
end
|
||||
|
||||
test "should show apply_project_master" do
|
||||
get :show, id: @apply_project_master
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @apply_project_master
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update apply_project_master" do
|
||||
put :update, id: @apply_project_master, apply_project_master: { }
|
||||
assert_redirected_to apply_project_master_path(assigns(:apply_project_master))
|
||||
end
|
||||
|
||||
test "should destroy apply_project_master" do
|
||||
assert_difference('ApplyProjectMaster.count', -1) do
|
||||
delete :destroy, id: @apply_project_master
|
||||
end
|
||||
|
||||
assert_redirected_to apply_project_masters_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AttachmentTypeEditControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContestnotificationsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@contestnotification = contestnotifications(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:contestnotifications)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create contestnotification" do
|
||||
assert_difference('Contestnotification.count') do
|
||||
post :create, contestnotification: { author_id: @contestnotification.author_id, comments_count: @contestnotification.comments_count, contest_id: @contestnotification.contest_id, description: @contestnotification.description, summary: @contestnotification.summary, title: @contestnotification.title }
|
||||
end
|
||||
|
||||
assert_redirected_to contestnotification_path(assigns(:contestnotification))
|
||||
end
|
||||
|
||||
test "should show contestnotification" do
|
||||
get :show, id: @contestnotification
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @contestnotification
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update contestnotification" do
|
||||
put :update, id: @contestnotification, contestnotification: { author_id: @contestnotification.author_id, comments_count: @contestnotification.comments_count, contest_id: @contestnotification.contest_id, description: @contestnotification.description, summary: @contestnotification.summary, title: @contestnotification.title }
|
||||
assert_redirected_to contestnotification_path(assigns(:contestnotification))
|
||||
end
|
||||
|
||||
test "should destroy contestnotification" do
|
||||
assert_difference('Contestnotification.count', -1) do
|
||||
delete :destroy, id: @contestnotification
|
||||
end
|
||||
|
||||
assert_redirected_to contestnotifications_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ForumsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@forum = forums(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:forums)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create forum" do
|
||||
assert_difference('Forum.count') do
|
||||
post :create, forum: { }
|
||||
end
|
||||
|
||||
assert_redirected_to forum_path(assigns(:forum))
|
||||
end
|
||||
|
||||
test "should show forum" do
|
||||
get :show, id: @forum
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @forum
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update forum" do
|
||||
put :update, id: @forum, forum: { }
|
||||
assert_redirected_to forum_path(assigns(:forum))
|
||||
end
|
||||
|
||||
test "should destroy forum" do
|
||||
assert_difference('Forum.count', -1) do
|
||||
delete :destroy, id: @forum
|
||||
end
|
||||
|
||||
assert_redirected_to forums_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,11 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MemosControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
def test_memo_create_fail
|
||||
memo = Memo.create(:subject => nil)
|
||||
assert true
|
||||
end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NoUsesControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@no_use = no_uses(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:no_uses)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create no_use" do
|
||||
assert_difference('NoUse.count') do
|
||||
post :create, no_use: { }
|
||||
end
|
||||
|
||||
assert_redirected_to no_use_path(assigns(:no_use))
|
||||
end
|
||||
|
||||
test "should show no_use" do
|
||||
get :show, id: @no_use
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @no_use
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update no_use" do
|
||||
put :update, id: @no_use, no_use: { }
|
||||
assert_redirected_to no_use_path(assigns(:no_use))
|
||||
end
|
||||
|
||||
test "should destroy no_use" do
|
||||
assert_difference('NoUse.count', -1) do
|
||||
delete :destroy, id: @no_use
|
||||
end
|
||||
|
||||
assert_redirected_to no_uses_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NotificationcommentsControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class OpenSourceProjectsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@open_source_project = open_source_projects(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:open_source_projects)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create open_source_project" do
|
||||
assert_difference('OpenSourceProject.count') do
|
||||
post :create, open_source_project: { String: @open_source_project.String }
|
||||
end
|
||||
|
||||
assert_redirected_to open_source_project_path(assigns(:open_source_project))
|
||||
end
|
||||
|
||||
test "should show open_source_project" do
|
||||
get :show, id: @open_source_project
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @open_source_project
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update open_source_project" do
|
||||
put :update, id: @open_source_project, open_source_project: { String: @open_source_project.String }
|
||||
assert_redirected_to open_source_project_path(assigns(:open_source_project))
|
||||
end
|
||||
|
||||
test "should destroy open_source_project" do
|
||||
assert_difference('OpenSourceProject.count', -1) do
|
||||
delete :destroy, id: @open_source_project
|
||||
end
|
||||
|
||||
assert_redirected_to open_source_projects_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,49 @@
|
|||
require 'test_helper'
|
||||
|
||||
class SoftapplicationsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@softapplication = softapplications(:one)
|
||||
end
|
||||
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:softapplications)
|
||||
end
|
||||
|
||||
test "should get new" do
|
||||
get :new
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should create softapplication" do
|
||||
assert_difference('Softapplication.count') do
|
||||
post :create, softapplication: { android_min_version_available: @softapplication.android_min_version_available, app_type_id: @softapplication.app_type_id, app_type_name: @softapplication.app_type_name, description: @softapplication.description, name: @softapplication.name, user_id: @softapplication.user_id }
|
||||
end
|
||||
|
||||
assert_redirected_to softapplication_path(assigns(:softapplication))
|
||||
end
|
||||
|
||||
test "should show softapplication" do
|
||||
get :show, id: @softapplication
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get :edit, id: @softapplication
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update softapplication" do
|
||||
put :update, id: @softapplication, softapplication: { android_min_version_available: @softapplication.android_min_version_available, app_type_id: @softapplication.app_type_id, app_type_name: @softapplication.app_type_name, description: @softapplication.description, name: @softapplication.name, user_id: @softapplication.user_id }
|
||||
assert_redirected_to softapplication_path(assigns(:softapplication))
|
||||
end
|
||||
|
||||
test "should destroy softapplication" do
|
||||
assert_difference('Softapplication.count', -1) do
|
||||
delete :destroy, id: @softapplication
|
||||
end
|
||||
|
||||
assert_redirected_to softapplications_path
|
||||
end
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
require 'test_helper'
|
||||
|
||||
class TestControllerTest < ActionController::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
test "get test index error" do
|
||||
@request.env["REQUEST_URI"] = ""
|
||||
get :index
|
||||
assert_template :index
|
||||
# assert_template layout: "layouts/base", partial: ["layouts/base_header","_base_header", 'layouts/base_footer', "_base_footer",]
|
||||
end
|
||||
end
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/unit/relative_memo_to_open_source_project_test.rb
|
||||
class RelativeMemoToOpenSourceProjectTest < ActiveSupport::TestCase
|
||||
=======
|
||||
class WebFooterCompaniesControllerTest < ActionController::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/functional/web_footer_companies_controller_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AttachmentstypeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/unit/applied_project_test.rb
|
||||
class AppliedProjectTest < ActiveSupport::TestCase
|
||||
=======
|
||||
class ContestNotificationTest < ActiveSupport::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/contest_notification_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContestingSoftapplicationTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContestnotificationTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -1,3 +1,12 @@
|
|||
<<<<<<< HEAD:test/unit/bug_to_osp_test.rb
|
||||
require 'test_helper'
|
||||
|
||||
class BugToOspTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
=======
|
||||
require 'test_helper'
|
||||
|
||||
class CourseGroupTest < ActiveSupport::TestCase
|
||||
|
@ -5,3 +14,4 @@ class CourseGroupTest < ActiveSupport::TestCase
|
|||
# assert true
|
||||
# end
|
||||
end
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/course_group_test.rb
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class CourseInfosTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class CourseStatusTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ForumTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AppliedProjectHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ApplyProjectMastersHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AttachmentTypeEditHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContestnotificationsHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,12 @@
|
|||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
class CoursesHelperTest < ActionView::TestCase
|
||||
include CoursesHelper
|
||||
# test "test truth" do
|
||||
# @project = Project.find_by_id 6834
|
||||
# teacherNum = teacherCount @project
|
||||
# studentNum = studentCount @project
|
||||
# assert_equal 1, teacherNum
|
||||
# assert_equal 5, studentNum
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ForumsHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class MemosHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NoUsesHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NotificationcommentsHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class OpenSourceProjectsHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class SchoolHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class SoftapplicationsHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class StoresHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class TestHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ZipdownHelperTest < ActionView::TestCase
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class JoinInContestTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class JournalReplyTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
require 'test_helper'
|
||||
|
||||
class MemoTest < ActiveSupport::TestCase
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
|
||||
def test_the_truth
|
||||
assert true
|
||||
end
|
||||
|
||||
test "should not save memo without content" do
|
||||
memo = Memo.new
|
||||
assert !memo.save, "assert, save memo without content."
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NoUseTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class NotificationcommentsTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class OpenSourceProjectTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/functional/school_controller_test.rb
|
||||
class SchoolControllerTest < ActionController::TestCase
|
||||
=======
|
||||
class OptionNumberTest < ActiveSupport::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/option_number_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/unit/apply_project_master_test.rb
|
||||
class ApplyProjectMasterTest < ActiveSupport::TestCase
|
||||
=======
|
||||
class ProjectScoreTest < ActiveSupport::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/project_score_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RelativeMemoTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class SchoolTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class SoftapplicationTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class UserScoreDetailsTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/functional/user_score_controller_test.rb
|
||||
class UserScoreControllerTest < ActionController::TestCase
|
||||
=======
|
||||
class WebFooterCompanyTest < ActiveSupport::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/web_footer_company_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
require 'test_helper'
|
||||
|
||||
<<<<<<< HEAD:test/functional/zipdown_controller_test.rb
|
||||
class ZipdownControllerTest < ActionController::TestCase
|
||||
=======
|
||||
class WebFooterOranizerTest < ActiveSupport::TestCase
|
||||
>>>>>>> a09a3dc378c45f43f5c4b090479fa292a846f4f0:test/unit/web_footer_oranizer_test.rb
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
|
|
Loading…
Reference in New Issue