motiro 0.6.10 → 0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +7 -11
- data/LICENSE +602 -262
- data/README +6 -7
- data/README.en +5 -6
- data/README.pt-br +6 -6
- data/app/controllers/account_controller.rb +5 -6
- data/app/controllers/application.rb +5 -6
- data/app/controllers/javascript_controller.rb +6 -7
- data/app/controllers/report_controller.rb +5 -6
- data/app/controllers/root_controller.rb +5 -1
- data/app/controllers/wiki_controller.rb +10 -8
- data/app/core/cache_reporter.rb +6 -7
- data/app/core/cache_reporter_fetcher.rb +6 -6
- data/app/core/chief_editor.rb +5 -6
- data/app/core/license.rb +598 -0
- data/app/core/reporter.rb +6 -7
- data/app/core/reporter_driver.rb +5 -5
- data/app/core/reporter_fetcher.rb +6 -7
- data/app/core/settings.rb +5 -6
- data/app/core/version.rb +1 -1
- data/app/core/wiki_reporter.rb +5 -6
- data/app/helpers/application_helper.rb +33 -16
- data/app/helpers/default_page_provider.rb +6 -7
- data/app/helpers/report_helper.rb +5 -6
- data/app/helpers/wiki_helper.rb +48 -0
- data/app/models/change.rb +5 -6
- data/app/models/chunk.rb +5 -6
- data/app/models/feed_observer.rb +6 -7
- data/app/models/headline.rb +5 -6
- data/app/models/page.rb +16 -7
- data/app/models/revision.rb +9 -9
- data/app/models/user.rb +6 -9
- data/app/models/wiki_reference.rb +5 -6
- data/app/models/wiki_sweeper.rb +6 -7
- data/app/ports/chdir_runner.rb +6 -7
- data/app/ports/runner.rb +5 -5
- data/app/reporters/darcs_connection.rb +6 -7
- data/app/reporters/darcs_reporter.rb +9 -10
- data/app/reporters/darcs_temp_repo.rb +5 -6
- data/app/reporters/events_reporter.rb +5 -6
- data/app/reporters/features_reporter.rb +5 -6
- data/app/reporters/subversion_reporter.rb +5 -6
- data/app/reporters/svn_connection.rb +6 -6
- data/app/reporters/svn_settings.rb +5 -5
- data/app/views/account/_authorization.rhtml +31 -23
- data/app/views/account/_availability.rhtml +1 -3
- data/app/views/javascript/motiro.rjs +6 -8
- data/app/views/layouts/_bottom.rhtml +7 -0
- data/app/views/report/list.rhtml +1 -1
- data/app/views/root/license.rhtml +5 -0
- data/app/views/wiki/_editbar.rhtml +2 -18
- data/app/views/wiki/_properties_show.rhtml +2 -1
- data/app/views/wiki/_show_event.rhtml +3 -1
- data/app/views/wiki/_show_feature.rhtml +2 -2
- data/app/views/wiki/diff.rhtml +2 -2
- data/app/views/wiki/page_feed.rxml +1 -13
- data/app/views/wiki/raw.rhtml +7 -0
- data/app/views/wiki/show.rhtml +1 -1
- data/app/views/wiki/sourcediff.rhtml +2 -2
- data/bin/motiro +5 -6
- data/config/initializers/motiro_core.rb +1 -0
- data/config/routes.rb +9 -6
- data/db/translation/pt-BR.rb +20 -6
- data/lib/array_extensions.rb +6 -7
- data/lib/diff_chunk_builder.rb +5 -6
- data/lib/differ.rb +5 -6
- data/lib/string_extensions.rb +5 -6
- data/lib/stub_hash.rb +5 -6
- data/lib/tasks/packaging.rake +7 -7
- data/lib/tasks/testing.rake +5 -6
- data/lib/tick_daemon.rb +5 -6
- data/lib/wiki_link_handler.rb +5 -6
- data/lib/wiki_renderer.rb +5 -6
- data/public/images/calendar.gif +0 -0
- data/public/images/done.gif +0 -0
- data/public/images/error.gif +0 -0
- data/public/images/not-done.gif +0 -0
- data/public/images/rss.gif +0 -0
- data/public/stylesheets/motiro.css +163 -170
- data/script/ticker +5 -6
- data/test/acceptance/account_test.rb +6 -7
- data/test/acceptance/darcs_test.rb +6 -7
- data/test/acceptance/events_test.rb +5 -6
- data/test/acceptance/main_page_test.rb +6 -7
- data/test/acceptance/subversion_test.rb +5 -6
- data/test/acceptance/ts_all_suites.rb +5 -6
- data/test/acceptance/wiki_test.rb +5 -6
- data/test/contract/darcs_test.rb +5 -6
- data/test/contract/svn_test.rb +5 -6
- data/test/fixtures/pages.yml +12 -0
- data/test/fixtures/revisions.yml +61 -0
- data/test/functional/report_controller_test.rb +5 -6
- data/test/functional/report_features_test.rb +5 -6
- data/test/functional/report_subversion_test.rb +5 -6
- data/test/functional/root_controller_test.rb +19 -4
- data/test/functional/wiki_controller_test.rb +66 -8
- data/test/lib/acceptance_test_case.rb +6 -7
- data/test/lib/darcs_excerpts.rb +5 -6
- data/test/lib/darcs_repo.rb +5 -6
- data/test/lib/hash_extensions.rb +5 -6
- data/test/lib/live_mode_test.rb +6 -7
- data/test/lib/netutils.rb +6 -7
- data/test/lib/platform_thread.rb +5 -5
- data/test/lib/selenium_extensions.rb +6 -7
- data/test/lib/stubio.rb +6 -7
- data/test/lib/webserver.rb +5 -6
- data/test/meta/darcs_repo_test.rb +6 -6
- data/test/meta/local_svn_test.rb +6 -7
- data/test/meta/platform_thread_test.rb +5 -5
- data/test/meta/stubio_test.rb +6 -7
- data/test/stubs/wiki_link_handler.rb +5 -6
- data/test/test_helper.rb +5 -6
- data/test/unit/array_extensions_test.rb +5 -6
- data/test/unit/cache_reporter_fetcher_test.rb +5 -6
- data/test/unit/cache_reporter_test.rb +5 -6
- data/test/unit/change_test.rb +5 -6
- data/test/unit/chdir_runner_test.rb +5 -6
- data/test/unit/chief_editor_test.rb +5 -6
- data/test/unit/darcs_connection_test.rb +5 -6
- data/test/unit/darcs_reporter_test.rb +14 -6
- data/test/unit/darcs_temp_repo_test.rb +5 -6
- data/test/unit/default_page_provider_test.rb +5 -6
- data/test/unit/diff_chunk_builder_test.rb +6 -7
- data/test/unit/headline_test.rb +5 -6
- data/test/unit/page_test.rb +45 -6
- data/test/unit/reporter_driver_test.rb +6 -7
- data/test/unit/reporter_test.rb +6 -7
- data/test/unit/revision_test.rb +17 -13
- data/test/unit/runner_test.rb +5 -6
- data/test/unit/string_extensions_test.rb +6 -7
- data/test/unit/svn_connection_test.rb +5 -5
- data/test/unit/svn_reporter_interaction_test.rb +6 -7
- data/test/unit/svn_reporter_test.rb +5 -6
- data/test/unit/svn_settings_test.rb +6 -7
- data/test/unit/user_test.rb +6 -11
- data/test/unit/wiki_link_handler_test.rb +5 -6
- data/test/unit/wiki_renderer_test.rb +7 -7
- data/test/unit/wiki_reporter_test.rb +5 -6
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiast.rb +15 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikihtmlgenerator.rb +18 -3
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilexer.rb +48 -9
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikilinkhandler.rb +7 -0
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.rb +534 -485
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiparser.y +25 -1
- data/vendor/mediacloth-trunk/lib/mediacloth/mediawikiwalker.rb +13 -0
- data/vendor/mediacloth-trunk/test/data/html1 +3 -3
- data/vendor/mediacloth-trunk/test/data/html10 +16 -16
- data/vendor/mediacloth-trunk/test/data/html11 +1 -1
- data/vendor/mediacloth-trunk/test/data/html13 +1 -1
- data/vendor/mediacloth-trunk/test/data/html4 +1 -1
- data/vendor/mediacloth-trunk/test/data/html5 +4 -4
- data/vendor/mediacloth-trunk/test/data/html7 +13 -1
- data/vendor/mediacloth-trunk/test/data/html9 +1 -1
- data/vendor/mediacloth-trunk/test/data/input1 +2 -0
- data/vendor/mediacloth-trunk/test/data/input7 +13 -1
- data/vendor/mediacloth-trunk/test/data/lex1 +1 -1
- data/vendor/mediacloth-trunk/test/data/lex7 +13 -1
- data/vendor/mediacloth-trunk/test/htmlgenerator.rb +26 -1
- data/vendor/mediacloth-trunk/test/lexer.rb +10 -0
- metadata +95 -103
- data/build/build.rb +0 -29
- data/config/report/subversion.yml +0 -26
- data/public/images/calendar.png +0 -0
- data/public/images/done.png +0 -0
- data/public/images/not-done.png +0 -0
- data/public/images/rss.png +0 -0
data/script/ticker
CHANGED
@@ -4,18 +4,17 @@
|
|
4
4
|
# Copyright (C) 2006-2008 Thiago Arrais
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU General Public License as published by
|
8
|
-
# the Free Software Foundation; either version
|
7
|
+
# it under the terms of the GNU Affero General Public License as published by
|
8
|
+
# the Free Software Foundation; either version 3 of the License, or
|
9
9
|
# any later version.
|
10
10
|
#
|
11
11
|
# This program is distributed in the hope that it will be useful,
|
12
12
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
13
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU General Public License for more details.
|
14
|
+
# GNU Affero General Public License for more details.
|
15
15
|
#
|
16
|
-
# You should have received a copy of the GNU General Public License
|
17
|
-
# along with this program
|
18
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
# You should have received a copy of the GNU Affero General Public License
|
17
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
18
|
|
20
19
|
$:.push File.expand_path(File.dirname(__FILE__) + '/../vendor')
|
21
20
|
$:.push File.expand_path(File.dirname(__FILE__) + '/../vendor/rails/activesupport/lib')
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require File.dirname(__FILE__) + '/../test_helper'
|
19
18
|
require 'acceptance_test_case'
|
@@ -183,4 +182,4 @@ private
|
|
183
182
|
assert_text_present('Incorrect username or password')
|
184
183
|
end
|
185
184
|
|
186
|
-
end
|
185
|
+
end
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require 'live_mode_test'
|
19
18
|
require 'darcs_repo'
|
@@ -59,4 +58,4 @@ class DarcsAcceptanceTest < SeleniumTestCase
|
|
59
58
|
assert_text_present 'for future investigation'
|
60
59
|
end
|
61
60
|
|
62
|
-
end
|
61
|
+
end
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require 'live_mode_test'
|
19
18
|
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
class MainPageAcceptanceTest < SeleniumTestCase
|
19
18
|
|
@@ -22,7 +21,7 @@ class MainPageAcceptanceTest < SeleniumTestCase
|
|
22
21
|
def test_report_html
|
23
22
|
open '/report/subversion/en'
|
24
23
|
assert_text_present 'Latest news from Subversion'
|
25
|
-
assert_element_present "//a[@href = '/report/subversion/en.xml']/img[starts-with(@src, '/images/rss.
|
24
|
+
assert_element_present "//a[@href = '/report/subversion/en.xml']/img[starts-with(@src, '/images/rss.gif')]"
|
26
25
|
end
|
27
26
|
|
28
27
|
def test_subversion_on_main
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require 'live_mode_test'
|
19
18
|
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require File.dirname(__FILE__) + '/../test_helper'
|
19
18
|
require 'acceptance_test_case'
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
class WikiAcceptanceTest < AcceptanceTestCase
|
19
18
|
|
data/test/contract/darcs_test.rb
CHANGED
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
$:.push File.expand_path(File.dirname(__FILE__) + '/../lib')
|
19
18
|
|
data/test/contract/svn_test.rb
CHANGED
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require 'rubygems'
|
19
18
|
|
data/test/fixtures/pages.yml
CHANGED
@@ -80,3 +80,15 @@ dependent_feature:
|
|
80
80
|
kind: feature
|
81
81
|
modified_at: 2020-02-22 15:57:37
|
82
82
|
|
83
|
+
page_with_syntax_error:
|
84
|
+
id: 16
|
85
|
+
name: ParsingError
|
86
|
+
kind: common
|
87
|
+
modified_at: 2008-04-01 19:23:42
|
88
|
+
|
89
|
+
open_page:
|
90
|
+
id: 17
|
91
|
+
name: OpenPage
|
92
|
+
kind: common
|
93
|
+
modified_at: 2008-04-15 20:11:08
|
94
|
+
|
data/test/fixtures/revisions.yml
CHANGED
@@ -221,3 +221,64 @@ dependent_feature_creation:
|
|
221
221
|
text: This features requires the completion of [[ListLastModifiedFeatures]]
|
222
222
|
and [[FinishedFeature]]
|
223
223
|
|
224
|
+
page_creation_without_syntax_error:
|
225
|
+
id: 21
|
226
|
+
page_id: 16
|
227
|
+
kind: common
|
228
|
+
modified_at: 2008-04-01 18:17:26
|
229
|
+
last_editor_id: 1000005 #eric
|
230
|
+
editors: ""
|
231
|
+
title: Parsing Error
|
232
|
+
position: 1
|
233
|
+
text: There is no syntax error in the English version
|
234
|
+
|
235
|
+
--- pt-br -----------
|
236
|
+
|
237
|
+
Não há erro sintático na versão em português
|
238
|
+
|
239
|
+
page_revision_with_syntax_error:
|
240
|
+
id: 22
|
241
|
+
page_id: 16
|
242
|
+
kind: common
|
243
|
+
modified_at: 2008-04-01 19:23:42
|
244
|
+
last_editor_id: 1000005 #eric
|
245
|
+
editors: ""
|
246
|
+
title: Parsing Error
|
247
|
+
position: 2
|
248
|
+
text: --- pt-br -----------
|
249
|
+
|
250
|
+
Não há erro sintático na versão em português
|
251
|
+
|
252
|
+
open_page_creation:
|
253
|
+
id: 23
|
254
|
+
page_id: 17
|
255
|
+
kind: common
|
256
|
+
modified_at: 2008-04-15 20:11:08
|
257
|
+
last_editor_id: 1000004 #john
|
258
|
+
editors: "john"
|
259
|
+
title: Restricted page
|
260
|
+
text: This page can only be edited by john himself.
|
261
|
+
position: 1
|
262
|
+
|
263
|
+
first_open_page_edition:
|
264
|
+
id: 24
|
265
|
+
page_id: 17
|
266
|
+
kind: common
|
267
|
+
modified_at: 2008-04-15 20:14:53
|
268
|
+
last_editor_id: 1000004 #john
|
269
|
+
editors: "john bob"
|
270
|
+
title: Open page
|
271
|
+
text: John changed the editors list and now the page can be edited by Eric too
|
272
|
+
position: 2
|
273
|
+
|
274
|
+
second_open_page_edition:
|
275
|
+
id: 25
|
276
|
+
page_id: 17
|
277
|
+
kind: common
|
278
|
+
modified_at: 2008-04-15 20:16:33
|
279
|
+
last_editor_id: 1000001 #bob
|
280
|
+
editors: "john bob"
|
281
|
+
title: Open page
|
282
|
+
text: Bob changed the text that John entered
|
283
|
+
position: 3
|
284
|
+
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require File.dirname(__FILE__) + '/../test_helper'
|
19
18
|
require 'report_controller'
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require File.dirname(__FILE__) + '/../test_helper'
|
19
18
|
require 'report_controller'
|
@@ -2,18 +2,17 @@
|
|
2
2
|
# Copyright (C) 2006-2008 Thiago Arrais
|
3
3
|
#
|
4
4
|
# This program is free software; you can redistribute it and/or modify
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
6
|
-
# the Free Software Foundation; either version
|
5
|
+
# it under the terms of the GNU Affero General Public License as published by
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
7
7
|
# any later version.
|
8
8
|
#
|
9
9
|
# This program is distributed in the hope that it will be useful,
|
10
10
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
11
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
# GNU General Public License for more details.
|
12
|
+
# GNU Affero General Public License for more details.
|
13
13
|
#
|
14
|
-
# You should have received a copy of the GNU General Public License
|
15
|
-
# along with this program
|
16
|
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
14
|
+
# You should have received a copy of the GNU Affero General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
16
|
|
18
17
|
require File.dirname(__FILE__) + '/../test_helper'
|
19
18
|
require 'live_mode_test'
|
@@ -17,7 +17,7 @@ class RootControllerTest < Test::Unit::TestCase
|
|
17
17
|
def test_version_number
|
18
18
|
get :index, :locale => 'en'
|
19
19
|
|
20
|
-
assert_tag :content => /Motiro version 0.6.
|
20
|
+
assert_tag :content => /Motiro version 0.6.11/
|
21
21
|
end
|
22
22
|
|
23
23
|
|
@@ -109,7 +109,7 @@ class RootControllerTest < Test::Unit::TestCase
|
|
109
109
|
assert_equal('en-US', assigns(:locale))
|
110
110
|
assert_equal('en-US', Locale.active.code)
|
111
111
|
end
|
112
|
-
|
112
|
+
|
113
113
|
def test_empty_language_string_on_accept_language_means_nothing
|
114
114
|
@request.env['HTTP_ACCEPT_LANGUAGE'] = ''
|
115
115
|
get :index
|
@@ -117,11 +117,26 @@ class RootControllerTest < Test::Unit::TestCase
|
|
117
117
|
assert_equal('en-US', assigns(:locale))
|
118
118
|
assert_equal('en-US', Locale.active.code)
|
119
119
|
end
|
120
|
-
|
120
|
+
|
121
121
|
def test_lists_last_changed_feature_pages
|
122
122
|
get :index
|
123
123
|
assert_tag :tag => 'div', :attributes => {:id => 'features'},
|
124
124
|
:content => Regexp.new(pages('list_last_modified_features_page').title)
|
125
125
|
end
|
126
|
-
|
126
|
+
|
127
|
+
def test_links_to_download_page_and_license_text
|
128
|
+
get :index
|
129
|
+
assert_tag :tag => 'a', :attributes => {:href => 'http://www.motiro.org/wiki/show/Download'},
|
130
|
+
:content => 'Source code'
|
131
|
+
assert_tag :tag => 'a', :attributes => {:href => '/license'},
|
132
|
+
:content => 'terms and conditions'
|
133
|
+
end
|
134
|
+
|
135
|
+
def test_show_license_text_to_site_users
|
136
|
+
get :license
|
137
|
+
assert_tag :tag => 'p', :content => /The GNU Affero General Public License is a free, copyleft license/
|
138
|
+
assert_tag :tag => 'p', :content => /offer all users/
|
139
|
+
assert_tag :tag => 'h3', :content => ' 12. No Surrender of Others\' Freedom. '
|
140
|
+
end
|
141
|
+
|
127
142
|
end
|