]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/1423'
authorTom Hughes <tom@compton.nu>
Thu, 2 Feb 2017 17:21:41 +0000 (17:21 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 2 Feb 2017 17:21:41 +0000 (17:21 +0000)
22 files changed:
app/models/changeset.rb
config/locales/be-Tarask.yml
config/locales/bg.yml
config/locales/bn.yml
config/locales/ca.yml
config/locales/el.yml
config/locales/eo.yml
config/locales/et.yml
config/locales/ko.yml
config/locales/lv.yml
config/locales/nl.yml
config/locales/pl.yml
test/controllers/oauth_clients_controller_test.rb
test/controllers/site_controller_test.rb
test/factories/client_applications.rb [new file with mode: 0644]
test/fixtures/client_applications.yml [deleted file]
test/integration/client_applications_test.rb
test/integration/oauth_test.rb
test/models/changeset_comment_test.rb
test/models/client_application_test.rb
test/models/oauth_token_test.rb
test/test_helper.rb

index 6909ba948bc4c33fb1079f90e963a82e9e515ae3..549600df6d26819bdce4a1aa04fa816ee8227e77 100644 (file)
@@ -32,7 +32,7 @@ class Changeset < ActiveRecord::Base
   EXPAND = 0.1
 
   # maximum number of elements allowed in a changeset
-  MAX_ELEMENTS = 50000
+  MAX_ELEMENTS = 10000
 
   # maximum time a changeset is allowed to be open for.
   MAX_TIME_OPEN = 1.day
index 40c3a4e75a71f352bad95133f93081afddf7611e..301e5ade3539c7371559e4ea3126d77a6dbf24f0 100644 (file)
@@ -869,14 +869,12 @@ be-Tarask:
       outbox: зыходзячыя
       messages: Вы маеце %{new_messages} і %{old_messages}
       new_messages:
-        few: '%{count} новыя паведамленьні'
-        many: '%{count} новых паведамленьняў'
         one: '%{count} новае паведамленьне'
+        few: '%{count} новыя паведамленьні'
         other: '%{count} новых паведамленьняў'
       old_messages:
-        few: '%{count} старыя паведамленьня'
-        many: '%{count} старых паведамленьняў'
         one: '%{count} старое паведамленьне'
+        few: '%{count} старыя паведамленьні'
         other: '%{count} старых паведамленьняў'
       from: Ад
       subject: Тэма
@@ -908,9 +906,8 @@ be-Tarask:
       inbox: уваходзячыя
       outbox: зыходзячыя
       messages:
-        few: Вы маеце %{count} дасланыя паведамленьня
-        many: Вы маеце %{count} дасланых паведамленьняў
         one: Вы маеце %{count} дасланае паведамленьне
+        few: Вы маеце %{count} дасланыя паведамленьні
         other: Вы маеце %{count} дасланых паведамленьняў
       to: Да
       subject: Тэма
@@ -1092,9 +1089,16 @@ be-Tarask:
       upload_trace: Загрузіць трэк
       see_all_traces: Паказаць усе трэкі
       see_your_traces: Паказаць усе Вашыя трэкі
-      traces_waiting: У Вас %{count} трэкаў, якія чакаюць загрузкі. Калі ласка, пачакайце
-        сканчэньня перадачы гэтых трэкаў, перад тым як загружаць іншыя, гэта дазволіць
-        не блякаваць чаргу для іншых удзельнікаў.
+      traces_waiting:
+        one: Вы маеце %{count} трэк, які чакае загрузкі. Калі ласка, пачакайце сканчэньня
+          перадачы гэтага трэку перад тым, як загружаць іншыя, гэта дазволіць не блякаваць
+          чаргу для іншых удзельнікаў.
+        few: Вы маеце %{count} трэкі, якія чакаюць загрузкі. Калі ласка, пачакайце
+          сканчэньня перадачы гэтых трэкаў перад тым, як загружаць іншыя, гэта дазволіць
+          не блякаваць чаргу для іншых удзельнікаў.
+        other: Вы маеце %{count} трэкаў, якія чакаюць загрузкі. Калі ласка, пачакайце
+          сканчэньня перадачы гэтых трэкаў перад тым, як загружаць іншыя, гэта дазволіць
+          не блякаваць чаргу для іншых удзельнікаў.
     trace_optionals:
       tags: Тэгі
     view:
@@ -1460,7 +1464,7 @@ be-Tarask:
       button: Пацьвердзіць
       success: Ваш рахунак пацьверджаны, дзякуй за рэгістрацыю!
       already active: Гэты рахунак ужо пацьверджаны.
-      unknown token: Ð\92Ñ\8bглÑ\8fдае, Ñ\88Ñ\82о Ð³Ñ\8dÑ\82Ñ\8b ÐºÐ»Ñ\8eÑ\87 не існуе.
+      unknown token: Ð\93Ñ\8dÑ\82Ñ\8b ÐºÐ¾Ð´ Ð¿Ð°Ñ\86Ñ\8cвеÑ\80джанÑ\8cнÑ\8f Ñ\81конÑ\87Ñ\8bÑ\9eÑ\81Ñ\8f Ð°Ð»Ñ\8cбо не існуе.
     confirm_resend:
       success: Мы даслалі новы ліст з пацьверджаньнем на адрас %{email} і, як толькі
         Вы пацьвердзіце Ваш рахунак, Вы зможаце пачаць працаваць з мапамі.<br /><br
@@ -1473,7 +1477,7 @@ be-Tarask:
       press confirm button: Націсьніце кнопку пацьверджаньня ніжэй, каб пацьвердзіць
         Ваш новы адрас электроннай пошты.
       button: Пацьвердзіць
-      success: Ð\92аÑ\88 Ð°Ð´Ñ\80аÑ\81 Ñ\8dлекÑ\82Ñ\80оннай Ð¿Ð¾Ñ\88Ñ\82Ñ\8b Ð¿Ð°Ñ\86Ñ\8cвеÑ\80джанÑ\8b, Ð´Ð·Ñ\8fкÑ\83й Ð·Ð° Ñ\80Ñ\8dгÑ\96Ñ\81Ñ\82Ñ\80аÑ\86Ñ\8bÑ\8e!
+      success: Ð\97Ñ\8cмена Ð\92аÑ\88ага Ð°Ð´Ñ\80аÑ\81Ñ\83 Ñ\8dлекÑ\82Ñ\80оннай Ð¿Ð¾Ñ\88Ñ\82Ñ\8b Ð¿Ð°Ñ\86Ñ\8cвеÑ\80джанаÑ\8f!
       failure: Адрас электроннай пошты ужо быў пацьверджаны гэтым ключом.
     set_home:
       flash success: Вашае месцазнаходжаньне пасьпяхова захаванае
@@ -1481,7 +1485,7 @@ be-Tarask:
       flash success: Усе Вашыя рэдагаваньні цяпер публічныя, і цяпер Вам дазволена
         рэдагаваньне.
     make_friend:
-      success: Цяпер %{name} — Ваш сябар.
+      success: Цяпер %{name} — Ваш сябар!
       failed: Прабачце, немагчыма дадаць %{name} да сьпісу сяброў.
       already_a_friend: Вы ўжо сябруеце з %{name}.
     remove_friend:
@@ -1494,8 +1498,8 @@ be-Tarask:
       title: Удзельнікі
       heading: Карыстальнікі
       showing:
-        one: Ð\9fаказанаÑ\8f Ñ\81Ñ\82аÑ\80онка %{page} Ð· (%{first_item} %{items})
-        other: Ð\9fаказанÑ\8bÑ\8f Ñ\81Ñ\82аÑ\80онкÑ\96 %{page} (%{first_item}-%{last_item} з %{items})
+        one: Ð¡Ñ\82аÑ\80онка %{page} (%{first_item} Ð· %{items})
+        other: Ð¡Ñ\82аÑ\80онкÑ\96 %{page} (%{first_item}â\80\94%{last_item} з %{items})
       summary: '%{name} створаны з %{ip_address}, %{date}'
       summary_no_ip: '%{name} створаны %{date}'
       confirm: Пацьвердзіць выбраных карыстальнікаў
@@ -1594,9 +1598,8 @@ be-Tarask:
       revoke: Адклікаць!
       flash: Гэтае блякаваньне было адкліканае.
     period:
-      few: '%{count} гадзіны'
-      many: '%{count} гадзінаў'
       one: '%{count} гадзіна'
+      few: '%{count} гадзіны'
       other: '%{count} гадзінаў'
     partial:
       show: Паказаць
index 882321eba5178f14ae1b7176cf06c9b0cab40650..474ab8389721fbce04cc2338ae946055c5a8b22c 100644 (file)
@@ -82,7 +82,9 @@ bg:
   browse:
     created: Създаден
     closed: Затворен
+    created_html: Създаден <abbr title="%{title}">преди %{time}</abbr>
     version: Версия
+    in_changeset: Списък с промени
     anonymous: анонимен
     no_comment: (без коментар)
     part_of: Част от
@@ -91,10 +93,12 @@ bg:
     view_details: Вижте детайлите
     location: 'Местоположение:'
     changeset:
+      title: 'Списък с промени: %{id}'
       belongs_to: Автор
       node: Точки (%{count})
       node_paginated: Точки (%{x}-%{y} от %{count})
       way: Пътища (%{count})
+      way_paginated: Пътища (%{x}-%{y} от общо %{count})
       relation: Релации (%{count})
       relation_paginated: Релации(%{x}-%{y} от %{count})
       comment: Коментари (%{count})
@@ -143,6 +147,8 @@ bg:
         relation: релация
     start_rjs:
       loading: Зареждане...
+    tag_details:
+      tags: Етикети
     note:
       description: Описание
   changeset:
@@ -161,6 +167,9 @@ bg:
       area: Област
     list:
       title: Списък промени
+      empty: Няма намерени списъци с промени.
+      empty_area: Няма списъци с промени в този район.
+      empty_user: Няма списъци с промени от този потребител.
       load_more: Зареждане на още
     rss:
       full: Пълна дискусия
@@ -172,7 +181,9 @@ bg:
       title_friends: Дневници на приятели
       title_nearby: Дневници на потребители наблизо
       user_title: Дневник на %{user}
+      new: Нов запис в дневник
       no_entries: Няма записи в дневника
+      older_entries: По-стари записи
       newer_entries: По-нови записи
     edit:
       subject: 'Тема:'
@@ -629,7 +640,7 @@ bg:
     export_data: Изнасяне на данни
     gps_traces: GPS-следи
     gps_traces_tooltip: Управление на GPS-следи
-    user_diaries: Дневници на потребителя
+    user_diaries: Дневник
     user_diaries_tooltip: Дневници на потребители
     edit_with: Редактиране с %{editor}
     tag_line: Свободна Wiki-карта на света
index 2129fa013219afd81a047d4205a9bebe076db691..d74d289a7516082f29381d421701b864f6d90f67 100644 (file)
@@ -5,6 +5,7 @@
 # Author: Bellayet
 # Author: Bodhisattwa
 # Author: Ehsanulhb
+# Author: Elias Ahmmad
 # Author: Kayser Ahmad
 # Author: Nasir8891
 # Author: Sayma Jahan
@@ -1081,7 +1082,7 @@ bn:
           cycleway_national: জাতীয় সাইকেলের রাস্তা
           cycleway_regional: আঞ্চলিক সাইকেলের রাস্তা
           cycleway_local: স্থানীয় সাইকেলের রাস্তা
-          footway: à¦ªà¦¦à¦ª
+          footway: à¦«à§\81à¦\9fপা
           rail: রেলপথ
           subway: ভূগর্ভস্থ পথ
           tram:
@@ -1201,7 +1202,7 @@ bn:
       message: জিপিএক্স ফাইল সংরক্ষণ এবং আপলোড বর্তমানে সম্ভব নয়
   oauth_clients:
     new:
-      title: একটি নতুন আবেন নিবন্ধন করুন
+      title: à¦\8fà¦\95à¦\9fি à¦¨à¦¤à§\81ন à¦\86বà§\87দন à¦¨à¦¿à¦¬à¦¨à§\8dধন à¦\95রà§\81ন
       submit: নিবন্ধন
     edit:
       submit: সম্পাদনা
@@ -1220,7 +1221,7 @@ bn:
       login_button: প্রবেশ
       register now: এখনই নিবন্ধন করুন
       with username: 'ইতিমধ্যে একটি ওপেনস্ট্রিটম্যাপ অ্যাকাউন্ট আছে? দয়া করে ব্যবহারকারীনাম
-        à¦\8fবà¦\82 à¦¶à¦¬à§\8dদà¦\9aাবি দিয়ে প্রবেশ করুন:'
+        à¦\8fবà¦\82 à¦ªà¦¾à¦¸à¦\93য়ারà§\8dড দিয়ে প্রবেশ করুন:'
       new to osm: ওপেনস্ট্রিটম্যাপে নতুন?
       no account: কোনও অ্যাকাউন্ট নেই?
       auth_providers:
index 171fd03c531284bc035a55edf54c0a565750c76a..f9e647fa6587d700490424c0a20b98ec5e2febb8 100644 (file)
@@ -1059,9 +1059,9 @@ ca:
         Freqüents sobre legalitat</a>.
       more_2_html: Encara que les dades d'OpenStreetMap són dades obertes, no podem
         oferir una API gratuïta per als desenvolupadors de terceres parts. Vegeu la
-        <a href="http://wiki.openstreetmap.org/wiki/API_usage_policy">Política d'ús
-        de l'API</a>, la <a href="http://wiki.openstreetmap.org/wiki/Tile_usage_policy">Política
-        d'ús de les tessel·les</a> i la <a href="http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy">Política
+        <a href="https://operations.osmfoundation.org/policies/api/">política d'ús
+        de l'API</a>, la <a href="https://operations.osmfoundation.org/policies/tiles/">política
+        d'ús de les tessel·les</a> i la <a href="https://operations.osmfoundation.org/policies/nominatim/">política
         d'ús de Nominatim</a>.
       contributors_title_html: Els nostres col·laboradors
       contributors_intro_html: 'Els nostres col·laboradors són milers de persones.
@@ -1839,6 +1839,9 @@ ca:
         github:
           title: Inicia la sessió amb GitHub
           alt: Inicia la sessió amb un compte de GitHub
+        wikipedia:
+          title: Inicia la sessió amb Viquipèdia
+          alt: Inicia la sessió amb un compte de Viquipèdia
         yahoo:
           title: Inicieu la sessió amb Yahoo
           alt: Inici de sessió amb un compte OpenID de Yahoo
@@ -2354,6 +2357,7 @@ ca:
         header: Capes del mapa
         notes: Notes de mapa
         data: Dades del mapa
+        gps: Traces GPS públiques
         overlays: Activar capes extra per als problemes del mapa
         title: Capes del mapa
       copyright: © <a href='%{copyright_url}'>Col·laboradors d'OpenStreetMap</a>
@@ -2439,6 +2443,11 @@ ca:
         against_oneway_without_exit: Anar en contra-direcció a %{name}
         end_oneway_without_exit: Fi del sentit únic a %{name}
         roundabout_with_exit: A la rotonda, agafar la sortida %{exit} a %{name}
+        turn_left_with_exit: A la rotonda gireu a l'esquerra cap a %{name}
+        slight_left_with_exit: A la rotonda gireu lleument a l'esquerra cap a %{name}
+        turn_right_with_exit: A la rotonda gireu a la dreta cap a %{name}
+        slight_right_with_exit: A la rotonda gireu lleument a la dreta cap a %{name}
+        continue_with_exit: A la rotonda continueu endavant cap a %{name}
         unnamed: sense nom
         courtesy: Direccions cortesia de %{link}
       time: Temps
index 4af67e6375ead33879b9f652dd91b8a12177c496..b7b89dcc896b0fece2055ede2d46ef699c40b46c 100644 (file)
@@ -1828,6 +1828,9 @@ el:
         github:
           title: Σύνδεση με το GitHub
           alt: Σύνδεση με λογαριασμό GitHub
+        wikipedia:
+          title: Σύνδεση με Wikipedia
+          alt: Συνδεθείτε με ένα Λογαριασμό Wikipedia
         yahoo:
           title: Σύνδεση με το Yahoo
           alt: Σύνδεση με ένα Yahoo OpenID
@@ -1885,6 +1888,7 @@ el:
       display name: 'Εμφανιζόμενο όνομα:'
       display name description: Το δημόσια εμφανιζόμενο όνομα χρήστη. Μπορείτε να
         το αλλάξετε αργότερα από τις προτιμήσεις.
+      external auth: 'Ελέγχος Ταυτότητας Τρίτου Μέρους:'
       password: 'Κωδικός:'
       confirm password: 'Επιβεβαίωση Κωδικού:'
       use external auth: 'Εναλλακτικά, χρησιμοποιήστε τρίτην υπηρεσία για είσοδο:'
@@ -2034,6 +2038,7 @@ el:
       gravatar:
         gravatar: Χρήση Gravatar
         link text: τι είναι αυτό;
+        enabled: Εμφάνισης του Gravatar σας έχει ενεργοποιηθεί.
       new image: Προσθήκη εικόνας
       keep image: Διατήρηση της τρέχουσας εικόνας
       delete image: Αφαίρεση της τρέχουσας εικόνας
@@ -2301,6 +2306,7 @@ el:
       link: Σύνδεσμος ή HTML
       long_link: Σύνδεσμος
       short_link: Σύντομος Σύνδεσμος
+      geo_uri: Geo URI
       embed: HTML
       custom_dimensions: Ορισμός προσαρμοσμένων διαστάσεων
       format: 'Μορφή:'
@@ -2335,6 +2341,7 @@ el:
         header: Στρώματα Χάρτη
         notes: Σημειώσεις Χάρτη
         data: Δεδομένα Χάρτη
+        gps: Δημόσια ίχνη GPS
         overlays: Ενεργοποίηση επικαλύψεων για την αντιμετώπιση προβλημάτων του χάρτη
         title: Στρώματα
       copyright: © <a href='%{copyright_url}'>Συνεισφέροντες του OpenStreetMap</a>
@@ -2394,14 +2401,20 @@ el:
       instructions:
         continue_without_exit: Συνεχίστε στην %{name}
         slight_right_without_exit: Ελαφριά δεξιά στην %{name}
+        offramp_right_without_exit: Πάρτε τη λωρίδα δεξιά προς %{name}
+        onramp_right_without_exit: Στρίψτε δεξιά στη λωρίδα προς %{name}
         endofroad_right_without_exit: Στο τέλος του δρόμου στρίψτε δεξιά στην %{name}
+        merge_right_without_exit: Ελαφριά δεξιά προς %{name}
         fork_right_without_exit: Στην διχάλα στρίψτε δεξιά στην %{name}
         turn_right_without_exit: Στρίψτε δεξιά στην %{name}
         sharp_right_without_exit: Κλειστά δεξιά στην %{name}
         uturn_without_exit: Αναστροφή στην %{name}
         sharp_left_without_exit: Κλειστά αριστερά στην %{name}
         turn_left_without_exit: Στρίψτε αριστερά στην %{name}
+        offramp_left_without_exit: Πάρτε τη λωρίδα αριστερά προς %{name}
+        onramp_left_without_exit: Στρίψτε αριστερά στη λωρίδα προς %{name}
         endofroad_left_without_exit: Στο τέλος του δρόμου στρίψτε αριστερά στην %{name}
+        merge_left_without_exit: Ελαφριά αριστερά προς %{name}
         fork_left_without_exit: Στη διχάλα στρίψτε αριστερά στην %{name}
         slight_left_without_exit: Ελαφριά αριστερά στην %{name}
         via_point_without_exit: (μέσω σημείου)
@@ -2415,6 +2428,11 @@ el:
         end_oneway_without_exit: Τέλος του μονόδρομου %{name}
         roundabout_with_exit: Στην κυκλική διασταύρωση, πάρτε την %{exit}η έξοδο προς
           %{name}
+        turn_left_with_exit: Στον κυκλικό κόμβο στρίψτε αριστερά προς %{name}
+        slight_left_with_exit: Στο κυκλικό κόμβο ελαφρά αριστερά προς %{name}
+        turn_right_with_exit: Στον κυκλικό κόμβο στρίψτε δεξιά προς %{name}
+        slight_right_with_exit: Στο κυκλικό κόμβο ελαφρά δεξιά προς %{name}
+        continue_with_exit: Στον κυκλικό κόμβο συνεχίστε ευθεία προς %{name}
         unnamed: ανώνυμος δρόμος
         courtesy: Οι οδηγίες είναι προσφορά του %{link}
       time: Διάρκεια
index 93c1fa62e1e875e31434839a74ba04fe17099cbd..3e4fe1bf7d88a7017bd26b7ded06aeb8e42fc182 100644 (file)
@@ -350,8 +350,9 @@ eo:
       map_image: Bildo de mapo (norma tavolo)
       embeddable_html: Enkorpigebla HTML
       licence: Permesilo
-      export_details: OpenStreetMap-datumoj estas disponebla laŭ la permesilo <a href="http://opendatacommons.org/licenses/odbl/1.0/">Open
-        Data Commons Open Database License</a> (ODbL).
+      export_details: OpenStreetMap-datumoj estas disponeblaj laŭ la permesilo <a
+        href="http://opendatacommons.org/licenses/odbl/1.0/">Open Data Commons Open
+        Database License</a> (ODbL).
       too_large:
         advice: 'Se la elportado malsukcesis, bonvolu uzi unu el jenaj fontoj:'
         body: La elektita areo estas tro granda por esti elportita kiel XML-datumojn
@@ -937,7 +938,7 @@ eo:
     log_in: Ensaluti
     log_in_tooltip: Ensaluti kun ekzistanta konto
     sign_up: Registriĝi
-    start_mapping: Eki mapigadon
+    start_mapping: Ekigi mapigadon
     sign_up_tooltip: Krei konton por redaktado
     edit: Redakti
     history: Historio
@@ -946,13 +947,13 @@ eo:
     export_data: Elporti datumojn
     gps_traces: GPS-spuroj
     gps_traces_tooltip: Manipuli la GPS-spurojn
-    user_diaries: Ĵurnaloj de uzantoj
-    user_diaries_tooltip: Esplori ĵurnalojn de uzantoj
+    user_diaries: Taglibroj de uzantoj
+    user_diaries_tooltip: Esplori taglibrojn de uzantoj
     edit_with: Redakti per %{editor}
     tag_line: La libera viki-mondmapo
     intro_header: Bonvenon al OpenStreetMap!
     intro_text: OpenStreetMap estas mapo de la mondo, kreata de homoj kiel vi, kaj
-      libere uzebla sub malferma permesilo.
+      libere uzebla laŭ la malferma permesilo.
     intro_2_create_account: Krei konton
     partners_html: Retgastigo estas liverata de %{ucl}, %{ic}, %{bytemark} kaj aliaj
       %{partners}.
@@ -989,7 +990,7 @@ eo:
       text: Vi legas la anglan version de paĝo pri kopirajto. Vi povas reveni al la
         %{native_link} de ĉi tiu paĝo aŭ vi povas ĉesi legi pri kopirajto kaj %{mapping_link}.
       native_link: Esperanta versio
-      mapping_link: eki mapigadon
+      mapping_link: ekigi mapigadon
     legal_babble:
       title_html: Kopirajto kaj permesilo
       intro_1_html: |-
@@ -1003,12 +1004,12 @@ eo:
         La plena <a href="http://opendatacommons.org/licenses/odbl/1.0/">interkonsento
         de uzado</a> eksplikas viajn rajtojn kaj devojn.
       intro_3_html: |-
-        La kartografio de niaj map-kaheloj kaj nia dokumentaro estas disponeblaj sub la permesilo <a href="https://creativecommons.org/licenses/by-sa/2.0/deed.eo">Creative
+        La kartografio de niaj map-kaheloj kaj nia dokumentaro estas disponeblaj laŭ la permesilo <a href="https://creativecommons.org/licenses/by-sa/2.0/deed.eo">Creative
         Commons Atribuite-Samkondiĉe 2.0</a> (CC BY-SA).
       credit_title_html: Kiel atribui aŭtorecon
       credit_1_html: 'Ni postulas, ke vi markos: &ldquo;&copy; Kontribuintoj de OpenStreetMap&rdquo;.'
-      credit_2_html: Vi ankaŭ devas klarigi, ke datumoj estas disponeblaj sub la permesilo
-        Open Database License, kaj kartografio de map-kaheloj sub la permesilo CC
+      credit_2_html: Vi ankaŭ devas klarigi, ke datumoj estas disponeblaj laŭ la permesilo
+        Open Database License, kaj kartografio de map-kaheloj laŭ la permesilo CC
         BY-SA. Vi povas indiki tion per fari ligilon al <a href="http://www.openstreetmap.org/copyright">ĉi
         tiu paĝo pri permesilo</a>. Alimaniere, se vi distribuas OSM en datuma formo,
         vi povas mencii nomo(j)n kaj ligilo(j)n al la permesilo(j). Se ne estas eble
@@ -1033,7 +1034,7 @@ eo:
         pri uzado de Nominatim</a>.
       contributors_title_html: Kunlaborantoj
       contributors_intro_html: 'Niaj kunlaborantoj estas miloj da homoj. Ni ankaŭ
-        inkludas datumoj sub malferma permesilo el landaj kartografiaj organizaĵoj
+        inkludas datumoj laŭ malferma permesilo el landaj kartografiaj organizaĵoj
         kaj el aliaj fontoj, inter ili:'
       contributors_at_html: |-
         <strong>Aŭstrujo</strong>: enhavas datumojn el <a href="http://data.wien.gv.at/">Stadt Wien</a> (sub <a href="http://creativecommons.org/licenses/by/3.0/at/deed.eo">CC BY</a>),
@@ -1047,7 +1048,7 @@ eo:
         Statistics Canada).
       contributors_fi_html: |-
         <strong>Suomujo</strong>: enhavas datumojn el
-        National Land Survey of Finland's Topographic Database kaj aliaj fontoj, sub la <a href="http://www.maanmittauslaitos.fi/en/NLS_open_data_licence_version1_20120501">NLSFI permesilo</a>.
+        National Land Survey of Finland's Topographic Database kaj aliaj fontoj, laŭ la <a href="http://www.maanmittauslaitos.fi/en/NLS_open_data_licence_version1_20120501">NLSFI permesilo</a>.
       contributors_fr_html: '<strong>Francujo</strong>: enhavas datumojn ricevitajn
         el ''Direction Générale des Impôts''.'
       contributors_nl_html: |-
@@ -1090,7 +1091,7 @@ eo:
   welcome_page:
     title: Bonvenon!
     introduction_html: Bonvenon al OpenStreetMap, la libera kaj redaktebla mapo de
-      la mondo. Nun kiam vi registriĝis, vi povas eki mapigadon. Jen estas mallonga
+      la mondo. Nun kiam vi registriĝis, vi povas ekigi mapigadon. Jen estas mallonga
       manlibreto kun la plej gravaj aĵoj kiuj vi povas scii.
     whats_on_the_map:
       title: Kio estas sur la mapo
@@ -1126,7 +1127,7 @@ eo:
       paragraph_1_html: OpenStreetMap havas kelkajn ejojn por lerni pri la projekto,
         por demandi pri ion ajn kaj kune diskuti kaj dokumenti pri mapigado. <a href='%{help_url}'>Alklaku
         por ricevi helpon</a>.
-    start_mapping: Eki mapigadon
+    start_mapping: Ekigi mapigadon
     add_a_note:
       title: Ĉu mankas al vi tempo por ridaktado? Aldonu rimarkon!
       paragraph_1_html: Se vi volas nur korekti iun etan kaj vi ne havas tempon por
@@ -1208,7 +1209,7 @@ eo:
     open_data_html: 'OpenStreetMap estas <i>malfermaj datumoj</i>: vi povas uzi ĝin
       kiamaniere vi volas sub la kondiĉo de vi atribuos aŭtorecon al OpenStreetMap
       kaj ĝiaj kontribuintoj. Se vi modifos aŭ uzos niajn datumojn, vi povos distribui
-      la verkon nur sub la sama permesilo. Vidu la <a href=''%{copyright_path}''>paĝon
+      la verkon nur laŭ la sama permesilo. Vidu la <a href=''%{copyright_path}''>paĝon
       pri kopirajto kaj permesilo</a> por pli da detaloj.'
     legal_title: Leĝaj demandoj
     legal_html: Ĉi tiu retejo kaj aliaj servoj estas formale administrataj de la <a
@@ -1403,7 +1404,7 @@ eo:
       shortlink: Mallonga ligilo
       createnote: Aldoni rimarkon
       license:
-        copyright: Kopirajto de OpenStreetMap kaj kontribuintoj, sub malferma permesilo
+        copyright: Kopirajto de OpenStreetMap kaj kontribuintoj, laŭ malferma permesilo
       remote_failed: Redaktado malsukcesis - certigu ĉu JOSM aŭ Merkaartor estas startigita
         kaj ĉu defora aliro estas aktiva
     edit:
@@ -1695,7 +1696,7 @@ eo:
       requests: 'Petado pri la jenaj permesoj de la uzanto:'
       allow_read_prefs: legi agordojn de uzanto.
       allow_write_prefs: modifi agordojn de uzanto.
-      allow_write_diary: krei ĵurnal-afiŝojn, komenti kaj amikigi aliajn.
+      allow_write_diary: skribi en taglibro, komenti kaj amikigi aliajn.
       allow_write_api: redakti la mapon.
       allow_read_gpx: legi privatajn GPS-spurojn.
       allow_write_gpx: alŝuti GPS-spurojn.
@@ -1722,7 +1723,7 @@ eo:
       requests: 'Peti pri la jenajn permesojn de la uzanto:'
       allow_read_prefs: legi agordojn de uzanto.
       allow_write_prefs: modifi agordojn de uzanto.
-      allow_write_diary: krei ĵurnal-afiŝojn, komenti kaj amikigi aliajn.
+      allow_write_diary: skribi en taglibro, komenti kaj amikigi aliajn.
       allow_write_api: redakti la mapon.
       allow_read_gpx: legi privatajn GPS-spurojn.
       allow_write_gpx: alŝuti GPS-spurojn.
@@ -1822,7 +1823,7 @@ eo:
         header: Libera kaj redaktebla
         html: <p>Kontraste kun aliaj mapoj, OpenStreetMap estas tute kreata de homoj
           kiel vi, kaj iu ajn povas korekti, ĝisdatigi, elŝuti kaj uzi ĝin.</p> <p>Registriĝu
-          por eki kontribuadon. Ni sendos al vi retleteron por konfirmi vian konton.</p>
+          por komenci kontribuadon. Ni sendos al vi retleteron por konfirmi vian konton.</p>
       license_agreement: Kiam vi konfirmos vian konton, vi devos akcepti la <a href="http://www.osmfoundation.org/wiki/License/Contributor_Terms">interkonsenton
         pri kontribuado</a>.
       email address: 'Retpoŝtadreso:'
@@ -1870,8 +1871,8 @@ eo:
         liter-eraroj, aŭ eble vi alklakis mis-ligilon.
       deleted: forigita
     view:
-      my diary: Mia ĵurnalo
-      new diary entry: nova ĵurnalrikordo
+      my diary: Mia taglibro
+      new diary entry: nova taglibra afiŝo
       my edits: Miaj redaktoj
       my traces: Miaj spuroj
       my notes: Miaj rimarkoj
@@ -1883,7 +1884,7 @@ eo:
       blocks on me: Blokas min
       blocks by me: Blokitaj de mi
       send message: Sendi mesaĝon
-      diary: Ĵurnalo
+      diary: Taglibro
       edits: Redaktoj
       traces: Spuroj
       notes: Map-rimarkoj
@@ -1933,9 +1934,9 @@ eo:
       delete_user: Forigi ĉi tiun uzanton
       confirm: Konfirmi
       friends_changesets: ŝanĝaroj de amikoj
-      friends_diaries: ĵurnal-afiŝoj de amikoj
+      friends_diaries: afiŝoj en taglibroj de amikoj
       nearby_changesets: ŝanĝaroj de proksimuloj
-      nearby_diaries: ĵurnal-afiŝoj de proksimuloj
+      nearby_diaries: afiŝoj en taglibroj de proksimuloj
     popup:
       your location: Via loko
       nearby mapper: Proksima uzanto
index 9d8dd5f129445aed7dcfc967bcb8608fa5b08630..8d329b892126d1c5acd8538c58ec2f279abaca75 100644 (file)
@@ -1100,7 +1100,7 @@ et:
     diary_comment_notification:
       subject: '[OpenStreetMap] %{user} kommenteeris sinu päeviku sissekannet'
       hi: Tere, %{to_user}!
-      header: '%{from_user} on kommenteerinud sinu hiljutist OpenStreetMapi päevikusissekannet
+      header: '%{from_user} kommenteeris hiljutist OpenStreetMapi päevikusissekannet
         pealkirjaga %{subject}:'
       footer: Loe kommentaari lehel %{readurl}. Võid lisada oma kommentaari lehel
         %{commenturl} või vastata kommentaarile lehel %{replyurl}.
@@ -1801,7 +1801,7 @@ et:
           on nüüdsest vaikimisi avalikud.</li></ul>
       contributor terms:
         heading: 'Kaastöö tingimused:'
-        agreed: Oled nõustunud uute Kaastöö tingimustega.
+        agreed: Oled nõustunud uute kaastöötingimustega.
         not yet agreed: Sa ei ole veel nõustunud uute Kaastöö tingimustega.
         review link text: Loe ja nõustu uute Kaastöö tingimustega klõpsates endale
           sobival ajal antud lingil.
index 3780c16d05f5f20b4efa7e09ace78e56372b80f8..3b8748a9bfbb7b63640ee07b6f59812501768a21 100644 (file)
@@ -1356,7 +1356,7 @@ ko:
       body: 본문
       send_button: 보내기
       back_to_inbox: 받은 쪽지함으로 돌아가기
-      message_sent: ë³´ë\82¸ ë©\94ì\8b\9cì§\80
+      message_sent: ë©\94ì\8b\9cì§\80를 ë³´ë\83\88ì\8aµë\8b\88ë\8b¤
       limit_exceeded: 최근에 많은 메시지를 보냈습니다. 더 보내려면 잠시 기다려주세요.
     no_such_message:
       title: 메시지가 없습니다.
index 713d270e829fbba48fb1ac81e018607b3b0ebcf3..af6fc1dff52cbec8691431c84920f791363f4384 100644 (file)
@@ -1797,6 +1797,9 @@ lv:
         github:
           title: Pieslēgties ar GitHub
           alt: Pieslēgties ar GitHub kontu
+        wikipedia:
+          title: Ieiet ar Vikipēdiju
+          alt: Ieiet ar Vikipēdijas kontu
         yahoo:
           title: Pieslēgties ar Yahoo
           alt: Pieslēgties ar Yahoo OpenID
index d0a8ba918fdc82d83f662cf6b4f3cbe1f0cff697..d67c74fa99e6cadbba674c72271f9505f085d338 100644 (file)
@@ -1174,8 +1174,8 @@ nl:
     questions:
       title: Nog vragen?
       paragraph_1_html: |-
-        Er zijn verschillende bronnen om te leren over OpenStreetMap, voor het stellen van vragen en het krijgen van antwoorden, en het samen overleggen en documenteren van onderwerpen die gaan over kaarten maken.
-        <a href='%{help_url}'>Hier vindt u meer informatie</a>.
+        Er zijn verschillende bronnen om te leren over OpenStreetMap, voor het stellen en beantwoorden van vragen, en het samen overleggen en documenteren van onderwerpen die gaan over kaarten maken.
+        <a href='%{help_url}'>Hier vind je meer informatie</a>.
     start_mapping: Beginnen met kaarten maken
     add_a_note:
       title: Geen tijd om te bewerken? Voeg een opmerking toe!
@@ -1188,23 +1188,24 @@ nl:
   fixthemap:
     title: Een probleem melden / de kaart corrigeren
     how_to_help:
-      title: Hoe u kunt helpen
+      title: Hoe je kan helpen
       join_the_community:
         title: Word lid van onze gemeenschap
-        explanation_html: Als u een probleem met onze kaartgegevens hebt gevonden
-          (er ontbreekt bijvoorbeeld een weg of uw adres staat er niet in) dan kunt
-          u zich het beste bij OpenStreetMap inschrijven en de gegevens zelf toevoegen
+        explanation_html: Als je een probleem met onze kaartgegevens hebt gevonden
+          (er ontbreekt bijvoorbeeld een weg of je adres staat er niet in) dan kan
+          je je het best bij OpenStreetMap inschrijven en de gegevens zelf toevoegen
           of corrigeren.
       add_a_note:
         instructions_html: |-
           Klik op <a class='icon note'></a> of het hetzelfde pictogram op de kaartweergave.
-          Er wordt dan een markering toegevoegd aan de kaart, die u kunt verplaatsen door te slepen.
-          Voeg uw bericht toe, klik op opslaan, en andere kaartenmakers kijken dan naar uw melding.
+          Er wordt dan een markering toegevoegd aan de kaart, die je kan verslepen.
+          Voeg je bericht toe, klik op opslaan, en andere kaartenmakers kijken dan naar jouw melding.
     other_concerns:
-      title: Andere punten van zorg
+      title: Andere aangelegenheden
       explanation_html: |-
-        Als u vragen hebt over hoe onze gegevens worden gebruikt of over de inhoud, raadpleeg dan onze
-        <a href='/copyright'>auteursrechtenpagina</a> voor meer juridische informatie, of neem contact op met de betreffende <a href='http://wiki.osmfoundation.org/wiki/Working_Groups'>OSMF werkgroep</a>.
+        Als je vragen hebt over hoe onze gegevens worden gebruikt of over de inhoud, raadpleeg dan onze
+        <a href='/copyright'>auteursrechtenpagina</a> voor meer juridische informatie, of neem contact op met de betreffende
+        <a href='http://wiki.osmfoundation.org/wiki/Working_Groups'>OSMF-werkgroep</a>.
   help_page:
     title: Hulp krijgen
     introduction: Er zijn verschillende bronnen om meer te leren over OpenStreetMap,
index 554245006fd50c1f5fe233427b538e80d00de53a..9ef0b356328f6f3301a0a068850688133825a63f 100644 (file)
@@ -551,7 +551,7 @@ pl:
           waste_disposal: Śmietnik
           youth_centre: Centrum młodzieżowe
         boundary:
-          administrative: Granica administracyjna
+          administrative: Granica gminy
           census: Granica spisu ludności
           national_park: Park Narodowy
           protected_area: Obszar chroniony
@@ -951,9 +951,9 @@ pl:
         level2: Granica kraju
         level4: 'Granica:'
         level5: Granica regionu
-        level6: 'Granica:'
+        level6: 'Granica powiatu:'
         level8: Granica miejscowości
-        level9: Granica wsi
+        level9: Granica dzielnicy
         level10: Granica przedmieścia
     description:
       title:
index a1c6fbc2118998afe3d82153e1c36af3cc26b014..020521bacd97c57462eec9cb5d6c05ac5acf505b 100644 (file)
@@ -1,7 +1,7 @@
 require "test_helper"
 
 class OauthClientsControllerTest < ActionController::TestCase
-  fixtures :users, :client_applications
+  fixtures :users
 
   ##
   # test all routes which lead to this controller
@@ -38,6 +38,7 @@ class OauthClientsControllerTest < ActionController::TestCase
 
   def test_index
     user = users(:public_user)
+    create_list(:client_application, 2, :user => user)
 
     get :index, :display_name => user.display_name
     assert_response :redirect
@@ -104,13 +105,14 @@ class OauthClientsControllerTest < ActionController::TestCase
 
   def test_show
     user = users(:public_user)
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :user => user)
+    other_client = create(:client_application)
 
     get :show, :display_name => user.display_name, :id => client.id
     assert_response :redirect
     assert_redirected_to login_path(:referer => oauth_client_path(:display_name => user.display_name, :id => client.id))
 
-    get :show, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user }
+    get :show, { :display_name => user.display_name, :id => other_client.id }, { :user => user }
     assert_response :not_found
     assert_template "not_found"
 
@@ -121,13 +123,14 @@ class OauthClientsControllerTest < ActionController::TestCase
 
   def test_edit
     user = users(:public_user)
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :user => user)
+    other_client = create(:client_application)
 
     get :edit, :display_name => user.display_name, :id => client.id
     assert_response :redirect
     assert_redirected_to login_path(:referer => edit_oauth_client_path(:display_name => user.display_name, :id => client.id))
 
-    get :edit, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user }
+    get :edit, { :display_name => user.display_name, :id => other_client.id }, { :user => user }
     assert_response :not_found
     assert_template "not_found"
 
@@ -147,12 +150,13 @@ class OauthClientsControllerTest < ActionController::TestCase
 
   def test_update
     user = users(:public_user)
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :user => user)
+    other_client = create(:client_application)
 
     put :update, :display_name => user.display_name, :id => client.id
     assert_response :forbidden
 
-    put :update, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user }
+    put :update, { :display_name => user.display_name, :id => other_client.id }, { :user => user }
     assert_response :not_found
     assert_template "not_found"
 
@@ -181,7 +185,8 @@ class OauthClientsControllerTest < ActionController::TestCase
 
   def test_destroy
     user = users(:public_user)
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :user => user)
+    other_client = create(:client_application)
 
     assert_difference "ClientApplication.count", 0 do
       delete :destroy, :display_name => user.display_name, :id => client.id
@@ -189,7 +194,7 @@ class OauthClientsControllerTest < ActionController::TestCase
     assert_response :forbidden
 
     assert_difference "ClientApplication.count", 0 do
-      delete :destroy, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user }
+      delete :destroy, { :display_name => user.display_name, :id => other_client.id }, { :user => user }
     end
     assert_response :not_found
     assert_template "not_found"
index d559760afdb5f4fda9c840a509779583150d424c..5efddd52e0914d7afa59ea54dfc80ab287ccbe5d 100644 (file)
@@ -6,8 +6,8 @@ class SiteControllerTest < ActionController::TestCase
   ##
   # setup oauth keys
   def setup
-    Object.const_set("ID_KEY", client_applications(:oauth_web_app).key)
-    Object.const_set("POTLATCH2_KEY", client_applications(:oauth_web_app).key)
+    Object.const_set("ID_KEY", create(:client_application).key)
+    Object.const_set("POTLATCH2_KEY", create(:client_application).key)
 
     stub_hostip_requests
   end
diff --git a/test/factories/client_applications.rb b/test/factories/client_applications.rb
new file mode 100644 (file)
index 0000000..413dc57
--- /dev/null
@@ -0,0 +1,6 @@
+FactoryGirl.define do
+  factory :client_application do
+    sequence(:name) { |n| "Client application #{n}" }
+    sequence(:url) { |n| "http://example.com/app/#{n}" }
+  end
+end
diff --git a/test/fixtures/client_applications.yml b/test/fixtures/client_applications.yml
deleted file mode 100644 (file)
index 13f9c08..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
-
-oauth_web_app:
-  name: Some OAuth Web App
-  created_at: "2009-04-21 00:00:00"
-  support_url: http://some.web.app.org/support
-  updated_at: "2009-04-21 00:00:00"
-  callback_url: http://some.web.app.org/callback
-  url: http://some.web.app.org/
-  user_id: 2
-  secret: Ur1s9LWWJJuYBiV9cDi3za3OV8TGCoRgUvVXJ5zp7pc
-  key: ewvENqsaTXFnZbMWmGDX2g
-  allow_read_prefs: true
-  allow_write_prefs: false
-  allow_write_diary: false
-  allow_write_api: true
-  allow_read_gpx: true
-  allow_write_gpx: false
-
-oauth_desktop_app:
-  name: Some OAuth Desktop App
-  created_at: "2009-04-21 00:00:00"
-  url: http://some.desktop.app.org/
-  support_url: http://some.desktop.app.org/support
-  updated_at: "2009-04-21 00:00:00"
-  user_id: 2
-  secret: V9DOm1H5qSdIG9IeCTiOkAcCx15bK8bkGxf7XEpF
-  key: rlEdPM6Tp8lpLwvSyNJQ4w
-  allow_read_prefs: true
-  allow_write_prefs: false
-  allow_write_diary: false
-  allow_write_api: true
-  allow_read_gpx: true
-  allow_write_gpx: false
-
-normal_user_app:
-  name: Some OAuth Desktop App
-  created_at: "2009-05-21 00:00:00"
-  url: http://some.desktop.app.org/
-  support_url: http://some.desktop.app.org/support
-  updated_at: "2009-05-21 00:00:00"
-  user_id: 1
-  secret: jgYx43yx1FAMQbG6T0qZhvvFsKEf6Pgd5XfHr5kFgv4
-  key: N6KVhfeaT626fhBt9aCMeA
-  allow_read_prefs: true
-  allow_write_prefs: false
-  allow_write_diary: false
-  allow_write_api: true
-  allow_read_gpx: true
-  allow_write_gpx: false
index 2cc15bd56c2ed6f09950258f578bf545d5194fb6..f5d235d95d03ab03c0fdda4b7bee22f5f03af848 100644 (file)
@@ -1,7 +1,7 @@
 require "test_helper"
 
 class ClientApplicationsTest < ActionDispatch::IntegrationTest
-  fixtures :users, :client_applications
+  fixtures :users
 
   ##
   # run through the procedure of creating a client application and checking
index c10699f2aa1e422d9d37e0c9ec07848a0b08e712..ceee95892f966d672a4508e11d0a18692cf2c361 100644 (file)
@@ -1,7 +1,7 @@
 require "test_helper"
 
 class OAuthTest < ActionDispatch::IntegrationTest
-  fixtures :users, :client_applications, :gpx_files
+  fixtures :users, :gpx_files
   set_fixture_class :gpx_files => Trace
 
   include OAuth::Helper
@@ -11,18 +11,18 @@ class OAuthTest < ActionDispatch::IntegrationTest
   end
 
   def test_oauth10_web_app
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :callback_url => "http://some.web.app.example.org/callback", :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true)
 
     post_via_redirect "/login", :username => client.user.email, :password => "test"
     assert_response :success
 
     oauth10_without_callback(client)
-    oauth10_with_callback(client, "http://another.web.app.org/callback")
+    oauth10_with_callback(client, "http://another.web.app.example.org/callback")
     oauth10_refused(client)
   end
 
   def test_oauth10_desktop_app
-    client = client_applications(:oauth_desktop_app)
+    client = create(:client_application, :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true)
 
     post_via_redirect "/login", :username => client.user.email, :password => "test"
     assert_response :success
@@ -32,18 +32,18 @@ class OAuthTest < ActionDispatch::IntegrationTest
   end
 
   def test_oauth10a_web_app
-    client = client_applications(:oauth_web_app)
+    client = create(:client_application, :callback_url => "http://some.web.app.example.org/callback", :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true)
 
     post_via_redirect "/login", :username => client.user.email, :password => "test"
     assert_response :success
 
     oauth10a_without_callback(client)
-    oauth10a_with_callback(client, "http://another.web.app.org/callback")
+    oauth10a_with_callback(client, "http://another.web.app.example.org/callback")
     oauth10a_refused(client)
   end
 
   def test_oauth10a_desktop_app
-    client = client_applications(:oauth_desktop_app)
+    client = create(:client_application, :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true)
 
     post_via_redirect "/login", :username => client.user.email, :password => "test"
     assert_response :success
@@ -196,7 +196,7 @@ class OAuthTest < ActionDispatch::IntegrationTest
     if client.callback_url
       assert_response :redirect
       verifier = parse_verifier(response)
-      assert_redirected_to "http://some.web.app.org/callback?oauth_token=#{token.token}&oauth_verifier=#{verifier}"
+      assert_redirected_to "http://some.web.app.example.org/callback?oauth_token=#{token.token}&oauth_verifier=#{verifier}"
     else
       assert_response :success
       assert_template :authorize_success
index 8215ce129f842956fe0bda591b95b3547394103e..64fbb36637e253fec6ea954ef009c5a114f0d86b 100644 (file)
@@ -2,7 +2,7 @@
 require "test_helper"
 
 class ChangesetCommentTest < ActiveSupport::TestCase
-  fixtures :changesets
+  fixtures :changesets, :users
 
   # validations
   def test_does_not_accept_invalid_author
index 604a5de3361df53b8fe154acde5aa2544067bfeb..9684513c42e74ae400b14447fb296049f6d584c6 100644 (file)
@@ -1,20 +1,18 @@
 require "test_helper"
 
 class ClientApplicationTest < ActiveSupport::TestCase
-  fixtures :client_applications
-
   def test_url_valid
     ok = ["http://example.com/test", "https://example.com/test"]
     bad = ["", "ftp://example.com/test", "myapp://somewhere"]
 
     ok.each do |url|
-      app = client_applications(:normal_user_app).dup
+      app = build(:client_application)
       app.url = url
       assert app.valid?, "#{url} is invalid, when it should be"
     end
 
     bad.each do |url|
-      app = client_applications(:normal_user_app)
+      app = build(:client_application)
       app.url = url
       assert !app.valid?, "#{url} is valid when it shouldn't be"
     end
@@ -25,13 +23,13 @@ class ClientApplicationTest < ActiveSupport::TestCase
     bad = ["ftp://example.com/test", "myapp://somewhere", "gibberish"]
 
     ok.each do |url|
-      app = client_applications(:normal_user_app)
+      app = build(:client_application)
       app.support_url = url
       assert app.valid?, "#{url} is invalid, when it should be"
     end
 
     bad.each do |url|
-      app = client_applications(:normal_user_app)
+      app = build(:client_application)
       app.support_url = url
       assert !app.valid?, "#{url} is valid when it shouldn't be"
     end
@@ -42,13 +40,13 @@ class ClientApplicationTest < ActiveSupport::TestCase
     bad = ["gibberish"]
 
     ok.each do |url|
-      app = client_applications(:normal_user_app)
+      app = build(:client_application)
       app.callback_url = url
       assert app.valid?, "#{url} is invalid, when it should be"
     end
 
     bad.each do |url|
-      app = client_applications(:normal_user_app)
+      app = build(:client_application)
       app.callback_url = url
       assert !app.valid?, "#{url} is valid when it shouldn't be"
     end
index ac10bf7fe3473b736c66e36cdc4bbb3905a02ddb..c2df0d1311b1e83e4a9434656920d31f61d935a7 100644 (file)
@@ -15,7 +15,7 @@ class OauthTokenTest < ActiveSupport::TestCase
   ##
   # check that an authorized token is authorised and can be invalidated
   def test_token_authorisation
-    tok = RequestToken.create(:client_application => client_applications(:oauth_web_app))
+    tok = RequestToken.create(:client_application => create(:client_application))
     assert_equal false, tok.authorized?, "Token should be created unauthorised."
     tok.authorize!(users(:public_user))
     assert_equal true, tok.authorized?, "Token should now be authorised."
index 9633989cda4d109278d828b049688545b832159b..e535d1645bb5f269231d076db3ede273b7ed6643 100644 (file)
@@ -50,8 +50,6 @@ module ActiveSupport
       set_fixture_class :gps_points => Tracepoint
       set_fixture_class :gpx_file_tags => Tracetag
 
-      fixtures :client_applications
-
       fixtures :redactions
     end