diff --git a/app/models/log_entry/attachment_log_entry.rb b/app/models/log_entry/attachment_log_entry.rb index f3fcde8..44a00b3 100644 --- a/app/models/log_entry/attachment_log_entry.rb +++ b/app/models/log_entry/attachment_log_entry.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class AttachmentLogEntry < LogEntry def attachment diff --git a/app/models/log_entry/event_log_entry.rb b/app/models/log_entry/event_log_entry.rb index ef132d1..4937cca 100644 --- a/app/models/log_entry/event_log_entry.rb +++ b/app/models/log_entry/event_log_entry.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class EventLogEntry < LogEntry def event diff --git a/app/models/log_entry/news_log_entry.rb b/app/models/log_entry/news_log_entry.rb index 527218a..404380c 100644 --- a/app/models/log_entry/news_log_entry.rb +++ b/app/models/log_entry/news_log_entry.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class NewsLogEntry < LogEntry def news diff --git a/app/models/log_entry/wiki_log_entry.rb b/app/models/log_entry/wiki_log_entry.rb index 37cb6c3..e75ee8e 100644 --- a/app/models/log_entry/wiki_log_entry.rb +++ b/app/models/log_entry/wiki_log_entry.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . class WikiLogEntry < LogEntry def wiki_page diff --git a/app/models/user.rb b/app/models/user.rb index 7ce121c..7dda15f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -18,6 +18,8 @@ require 'digest/sha1' class User < ActiveRecord::Base + acts_as_paranoid + has_and_belongs_to_many :courses, :order => 'full_name' validates_length_of :login, :within => 3..40 @@ -36,8 +38,6 @@ class User < ActiveRecord::Base attr_protected :id, :salt attr_accessor :password, :password_confirmation - acts_as_paranoid - def User.find_by_login_and_pass(login, pass) user = find(:first, :conditions => [ "login = ?", login ]) return (!user.nil? and User.encrypt(pass, user.salt) == user.hashed_password) ? user : nil diff --git a/config/routes.rb b/config/routes.rb index 6e6530e..3dce15c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . ActionController::Routing::Routes.draw do |map| diff --git a/test/fixtures/attachments.yml b/test/fixtures/attachments.yml index 79d8c21..87c72ac 100644 --- a/test/fixtures/attachments.yml +++ b/test/fixtures/attachments.yml @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . one: id: 1 diff --git a/test/fixtures/courses.yml b/test/fixtures/courses.yml index 4c09948..c99ff8d 100644 --- a/test/fixtures/courses.yml +++ b/test/fixtures/courses.yml @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . course_1: id: 1 diff --git a/test/fixtures/events.yml b/test/fixtures/events.yml index 5efdcac..4ba9f43 100644 --- a/test/fixtures/events.yml +++ b/test/fixtures/events.yml @@ -1,22 +1,25 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . event1: id: 1 course_id: 1 created_by: 1 title: Event 1 - time: <%= Time.now %> + time: <%= Time.now.to_s(:db) %> description: A random test event #two: # id: 2 diff --git a/test/fixtures/log_entries.yml b/test/fixtures/log_entries.yml index 5bf0293..2701d90 100644 --- a/test/fixtures/log_entries.yml +++ b/test/fixtures/log_entries.yml @@ -1,4 +1,18 @@ -# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html +# Wiki UFC +# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . # one: # column: value diff --git a/test/fixtures/messages.yml b/test/fixtures/messages.yml index 1fb33bc..b057899 100644 --- a/test/fixtures/messages.yml +++ b/test/fixtures/messages.yml @@ -1,21 +1,24 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . news_message: id: 1 title: test body: test - timestamp: <%= Time.now %> + timestamp: <%= Time.now.to_s(:db) %> receiver_id: 1 sender_id: 1 type: News diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index 1479721..17f0ee9 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . bob: id: 1000001 @@ -19,7 +22,7 @@ bob: email: bob@mcbob.com hashed_password: 77a0d943cdbace52716a9ef9fae12e45e2788d39 # test display_name: bob - last_seen: <%= Time.now %> + last_seen: <%= Time.now.to_s(:db) %> admin: true secret: bob @@ -31,7 +34,7 @@ existingbob: email: exbob@mcbob.com hashed_password: 77a0d943cdbace52716a9ef9fae12e45e2788d39 # test display_name: existingbob - last_seen: <%= Time.now %> + last_seen: <%= Time.now.to_s(:db) %> admin: false secret: existingbob @@ -43,6 +46,6 @@ longbob: email: lbob@mcbob.com hashed_password: 00728d3362c26746ec25963f71be022b152237a9 # longtest display_name: longbob - last_seen: <%= Time.now %> + last_seen: <%= Time.now.to_s(:db) %> admin: false secret: longbob diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 586d11c..bb0c4de 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'attachments_controller' diff --git a/test/functional/courses_controller_test.rb b/test/functional/courses_controller_test.rb index 0c1b93e..af84a5e 100644 --- a/test/functional/courses_controller_test.rb +++ b/test/functional/courses_controller_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'courses_controller' diff --git a/test/functional/events_controller_test.rb b/test/functional/events_controller_test.rb index 3fe5ada..60ea585 100644 --- a/test/functional/events_controller_test.rb +++ b/test/functional/events_controller_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'events_controller' diff --git a/test/functional/log_controller_test.rb b/test/functional/log_controller_test.rb index fec9bd0..bd6085e 100644 --- a/test/functional/log_controller_test.rb +++ b/test/functional/log_controller_test.rb @@ -1,3 +1,19 @@ +# Wiki UFC +# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require File.dirname(__FILE__) + '/../test_helper' class LogControllerTest < ActionController::TestCase diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index 31e4137..4095790 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -1,3 +1,19 @@ +# Wiki UFC +# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require File.dirname(__FILE__) + '/../test_helper' require 'news_controller' diff --git a/test/functional/stylesheets_controller_test.rb b/test/functional/stylesheets_controller_test.rb index 4dd41c3..9f3fd29 100644 --- a/test/functional/stylesheets_controller_test.rb +++ b/test/functional/stylesheets_controller_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'stylesheets_controller' diff --git a/test/functional/user_controller_test.rb b/test/functional/user_controller_test.rb index 421f4da..476d28b 100644 --- a/test/functional/user_controller_test.rb +++ b/test/functional/user_controller_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'users_controller' diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index e8ccb24..9a03104 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -1,16 +1,18 @@ - -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' require 'wiki_controller' diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index ab763fa..056fc29 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' diff --git a/test/unit/course_test.rb b/test/unit/course_test.rb index c2612db..d897ea4 100644 --- a/test/unit/course_test.rb +++ b/test/unit/course_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' diff --git a/test/unit/event_test.rb b/test/unit/event_test.rb index 89c4b9f..7a7be3d 100644 --- a/test/unit/event_test.rb +++ b/test/unit/event_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' diff --git a/test/unit/log_entry_test.rb b/test/unit/log_entry_test.rb index c86cb8b..30e2bba 100644 --- a/test/unit/log_entry_test.rb +++ b/test/unit/log_entry_test.rb @@ -1,3 +1,19 @@ +# Wiki UFC +# Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + require File.dirname(__FILE__) + '/../test_helper' class LogEntryTest < ActiveSupport::TestCase diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb index 3480387..0fe70ba 100644 --- a/test/unit/message_test.rb +++ b/test/unit/message_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' diff --git a/test/unit/notifications_test.rb b/test/unit/notifications_test.rb index 1e307bd..1af8147 100644 --- a/test/unit/notifications_test.rb +++ b/test/unit/notifications_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante # -# 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. -# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 257030c..38725f8 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante -# -# 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. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper' @@ -136,7 +139,7 @@ class UserTest < Test::Unit::TestCase u.login = "" assert !u.valid? assert u.errors.invalid?('login') - assert_equal 2, u.errors.count, u.errors.full_messages + assert_equal 3, u.errors.count, u.errors.full_messages # OK u.login = "okbob" diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb index f1c95cd..ee01aaf 100644 --- a/test/unit/wiki_page_test.rb +++ b/test/unit/wiki_page_test.rb @@ -1,15 +1,18 @@ -# Engenharia de Software 2007.1 +# Wiki UFC # Copyright (C) 2007, Adriano, Alinson, Andre, Rafael e Bustamante -# -# 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. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . require File.dirname(__FILE__) + '/../test_helper'