diff options
Diffstat (limited to 'site/spec')
-rw-r--r-- | site/spec/factories.rb | 15 | ||||
-rw-r--r-- | site/spec/models/agenda_item_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/agenda_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/participation_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/proxy_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/user_mailer_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/user_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/vote_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/models/voting_option_spec.rb | 15 | ||||
-rw-r--r-- | site/spec/spec_helper.rb | 15 | ||||
-rw-r--r-- | site/spec/support/delayed_should_receive.rb | 15 | ||||
-rw-r--r-- | site/spec/support/http_stub.rb | 15 | ||||
-rw-r--r-- | site/spec/support/should_have_text.rb | 15 | ||||
-rw-r--r-- | site/spec/support/users_factory.rb | 15 |
14 files changed, 210 insertions, 0 deletions
diff --git a/site/spec/factories.rb b/site/spec/factories.rb index 2664917..29a0ee9 100644 --- a/site/spec/factories.rb +++ b/site/spec/factories.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + Factory.sequence :user do |n| "user-#{n}" end diff --git a/site/spec/models/agenda_item_spec.rb b/site/spec/models/agenda_item_spec.rb index fe4f906..2e082a3 100644 --- a/site/spec/models/agenda_item_spec.rb +++ b/site/spec/models/agenda_item_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' require 'support/http_stub.rb' diff --git a/site/spec/models/agenda_spec.rb b/site/spec/models/agenda_spec.rb index 738db63..aab4bb0 100644 --- a/site/spec/models/agenda_spec.rb +++ b/site/spec/models/agenda_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe Agenda do diff --git a/site/spec/models/participation_spec.rb b/site/spec/models/participation_spec.rb index 75485e6..07df6e0 100644 --- a/site/spec/models/participation_spec.rb +++ b/site/spec/models/participation_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe Participation do diff --git a/site/spec/models/proxy_spec.rb b/site/spec/models/proxy_spec.rb index 995ebb1..3585d48 100644 --- a/site/spec/models/proxy_spec.rb +++ b/site/spec/models/proxy_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe Proxy do diff --git a/site/spec/models/user_mailer_spec.rb b/site/spec/models/user_mailer_spec.rb index ea2c2bc..5eb48c0 100644 --- a/site/spec/models/user_mailer_spec.rb +++ b/site/spec/models/user_mailer_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe UserMailer do it 'should send proper meeting reminders' do diff --git a/site/spec/models/user_spec.rb b/site/spec/models/user_spec.rb index c9f36b9..2981447 100644 --- a/site/spec/models/user_spec.rb +++ b/site/spec/models/user_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper.rb' describe User do diff --git a/site/spec/models/vote_spec.rb b/site/spec/models/vote_spec.rb index 5f53a69..55f6d24 100644 --- a/site/spec/models/vote_spec.rb +++ b/site/spec/models/vote_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe Vote do diff --git a/site/spec/models/voting_option_spec.rb b/site/spec/models/voting_option_spec.rb index 5054f43..c51b07e 100644 --- a/site/spec/models/voting_option_spec.rb +++ b/site/spec/models/voting_option_spec.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + require 'spec_helper' describe VotingOption do diff --git a/site/spec/spec_helper.rb b/site/spec/spec_helper.rb index c13e1c5..9f35af4 100644 --- a/site/spec/spec_helper.rb +++ b/site/spec/spec_helper.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' diff --git a/site/spec/support/delayed_should_receive.rb b/site/spec/support/delayed_should_receive.rb index 0fbbe27..a3e0964 100644 --- a/site/spec/support/delayed_should_receive.rb +++ b/site/spec/support/delayed_should_receive.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + class Object def should_receive_delayed(method, *args) m = RSpec::Mocks::Mock.new('proxy') diff --git a/site/spec/support/http_stub.rb b/site/spec/support/http_stub.rb index ba6565e..a2ccd6e 100644 --- a/site/spec/support/http_stub.rb +++ b/site/spec/support/http_stub.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + class ResponseStub def initialize(filename) @filename = filename diff --git a/site/spec/support/should_have_text.rb b/site/spec/support/should_have_text.rb index 3016c13..a83ad06 100644 --- a/site/spec/support/should_have_text.rb +++ b/site/spec/support/should_have_text.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + module Mail class Message # emailspec doesn't add this, so we have to diff --git a/site/spec/support/users_factory.rb b/site/spec/support/users_factory.rb index 126a7b9..8c4d13d 100644 --- a/site/spec/support/users_factory.rb +++ b/site/spec/support/users_factory.rb @@ -1,3 +1,18 @@ +# Gentoo Council Web App - to help Gentoo Council do their job better +# Copyright (C) 2011 Joachim Filip Bartosik +# +# 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, version 3 of the License +# +# 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 <http://www.gnu.org/licenses/>. + def users_factory(*roles) roles.flatten! roles.collect! do |role| |