aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/features/step_definitions')
-rw-r--r--site/features/step_definitions/agenda_item_steps.rb15
-rw-r--r--site/features/step_definitions/agenda_steps.rb15
-rw-r--r--site/features/step_definitions/cookie_steps.rb15
-rw-r--r--site/features/step_definitions/irc_nick_steps.rb15
-rw-r--r--site/features/step_definitions/login_steps.rb15
-rw-r--r--site/features/step_definitions/participations_steps.rb15
-rw-r--r--site/features/step_definitions/proxies_steps.rb15
-rw-r--r--site/features/step_definitions/voting_steps.rb15
-rw-r--r--site/features/step_definitions/web_steps.rb15
-rw-r--r--site/features/step_definitions/within_steps.rb15
10 files changed, 150 insertions, 0 deletions
diff --git a/site/features/step_definitions/agenda_item_steps.rb b/site/features/step_definitions/agenda_item_steps.rb
index b600bad..6658404 100644
--- a/site/features/step_definitions/agenda_item_steps.rb
+++ b/site/features/step_definitions/agenda_item_steps.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/>.
+
When /^I fill in example agenda item data$/ do
When "I fill in the following:", table(%{
|agenda_item_title|examle|
diff --git a/site/features/step_definitions/agenda_steps.rb b/site/features/step_definitions/agenda_steps.rb
index 20a6f2a..dbec525 100644
--- a/site/features/step_definitions/agenda_steps.rb
+++ b/site/features/step_definitions/agenda_steps.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/>.
+
Given /^an ?(\w*) agenda$/ do |state|
a = Agenda.new
state = 'submissions_closed' if state == 'closed'
diff --git a/site/features/step_definitions/cookie_steps.rb b/site/features/step_definitions/cookie_steps.rb
index c682c1c..3a40e1f 100644
--- a/site/features/step_definitions/cookie_steps.rb
+++ b/site/features/step_definitions/cookie_steps.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/>.
+
Then /^show me the cookies!$/ do
show_me_the_cookies
end
diff --git a/site/features/step_definitions/irc_nick_steps.rb b/site/features/step_definitions/irc_nick_steps.rb
index 5daf44f..5559750 100644
--- a/site/features/step_definitions/irc_nick_steps.rb
+++ b/site/features/step_definitions/irc_nick_steps.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/>.
+
When /^I fill in example user registration data$/ do
When "I fill in the following:", table(%{
|user_name|examle|
diff --git a/site/features/step_definitions/login_steps.rb b/site/features/step_definitions/login_steps.rb
index d0f6642..5d8967c 100644
--- a/site/features/step_definitions/login_steps.rb
+++ b/site/features/step_definitions/login_steps.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/>.
+
Given /^example user$/ do
user = User.new :name => "Example", :email => "example@example.com",
:password => "Example", :irc_nick => "example"
diff --git a/site/features/step_definitions/participations_steps.rb b/site/features/step_definitions/participations_steps.rb
index e4b48b6..566ffdd 100644
--- a/site/features/step_definitions/participations_steps.rb
+++ b/site/features/step_definitions/participations_steps.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/>.
+
Given /^some council members$/ do
(1..8).each do |n|
u = User.new
diff --git a/site/features/step_definitions/proxies_steps.rb b/site/features/step_definitions/proxies_steps.rb
index 44f27c0..32d5dac 100644
--- a/site/features/step_definitions/proxies_steps.rb
+++ b/site/features/step_definitions/proxies_steps.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/>.
+
Given /^a regular user$/ do
Factory(:user, :name => "User")
end
diff --git a/site/features/step_definitions/voting_steps.rb b/site/features/step_definitions/voting_steps.rb
index db6a5a0..cfa1253 100644
--- a/site/features/step_definitions/voting_steps.rb
+++ b/site/features/step_definitions/voting_steps.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/>.
+
When /^I follow first agenda item link$/ do
When "I follow \"#{AgendaItem.first.title}\""
end
diff --git a/site/features/step_definitions/web_steps.rb b/site/features/step_definitions/web_steps.rb
index d615b65..fc8f8a3 100644
--- a/site/features/step_definitions/web_steps.rb
+++ b/site/features/step_definitions/web_steps.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 'uri'
require 'cgi'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
diff --git a/site/features/step_definitions/within_steps.rb b/site/features/step_definitions/within_steps.rb
index 42f2ff6..52254a3 100644
--- a/site/features/step_definitions/within_steps.rb
+++ b/site/features/step_definitions/within_steps.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/>.
+
{
'as current agenda' => '.current-agenda',
'as agenda state' => '.state-tag.view.agenda-state',