diff options
Diffstat (limited to 'site/features')
-rw-r--r-- | site/features/step_definitions/agenda_item_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/agenda_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/cookie_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/irc_nick_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/login_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/participations_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/proxies_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/voting_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/web_steps.rb | 15 | ||||
-rw-r--r-- | site/features/step_definitions/within_steps.rb | 15 | ||||
-rw-r--r-- | site/features/support/break_after_failed_step.rb | 15 | ||||
-rw-r--r-- | site/features/support/cookies.rb | 15 | ||||
-rw-r--r-- | site/features/support/env.rb | 15 | ||||
-rw-r--r-- | site/features/support/paths.rb | 15 | ||||
-rw-r--r-- | site/features/support/selectors.rb | 15 |
15 files changed, 225 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', diff --git a/site/features/support/break_after_failed_step.rb b/site/features/support/break_after_failed_step.rb index 42ef606..d884bc6 100644 --- a/site/features/support/break_after_failed_step.rb +++ b/site/features/support/break_after_failed_step.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/>. + After do |scenario| if scenario.status == :failed breakpoint diff --git a/site/features/support/cookies.rb b/site/features/support/cookies.rb index 84f59b5..75cafe6 100644 --- a/site/features/support/cookies.rb +++ b/site/features/support/cookies.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/>. + World(ShowMeTheCookies) Before('@announce') do @announce = true diff --git a/site/features/support/env.rb b/site/features/support/env.rb index a7389e9..eb307a5 100644 --- a/site/features/support/env.rb +++ b/site/features/support/env.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 'cucumber/rails' Capybara.default_selector = :css Capybara.default_driver = :selenium diff --git a/site/features/support/paths.rb b/site/features/support/paths.rb index 8bd2f36..b0aa6e1 100644 --- a/site/features/support/paths.rb +++ b/site/features/support/paths.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 NavigationHelpers # Maps a name to a path. Used by the # diff --git a/site/features/support/selectors.rb b/site/features/support/selectors.rb index 0856127..42482b7 100644 --- a/site/features/support/selectors.rb +++ b/site/features/support/selectors.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 HtmlSelectorsHelpers # Maps a name to a selector. Used primarily by the # |