1 |
commit: f7550a6ec6ff11874fbe3730c677225a86839251 |
2 |
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 11 13:17:32 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 13 15:39:28 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=f7550a6e |
7 |
|
8 |
Show hint on timelimits format (on AgendaItem edit page) |
9 |
|
10 |
--- |
11 |
site/config/locales/app.en.yml | 23 +++---------------- |
12 |
site/features/agenda_items.feature | 9 +++++++ |
13 |
.../features/step_definitions/agenda_item_steps.rb | 5 ++++ |
14 |
site/features/support/paths.rb | 3 ++ |
15 |
4 files changed, 21 insertions(+), 19 deletions(-) |
16 |
|
17 |
diff --git a/site/config/locales/app.en.yml b/site/config/locales/app.en.yml |
18 |
index 26256ec..ecf802b 100644 |
19 |
--- a/site/config/locales/app.en.yml |
20 |
+++ b/site/config/locales/app.en.yml |
21 |
@@ -4,22 +4,7 @@ |
22 |
en: |
23 |
hello: "Hello world" |
24 |
|
25 |
-# attributes: |
26 |
-# created_at: Created at |
27 |
-# updated_at: Updated at |
28 |
-# |
29 |
-# activerecord: |
30 |
-# models: |
31 |
-# user: |
32 |
-# one: User |
33 |
-# other: Users |
34 |
-# attributes: |
35 |
-# user: |
36 |
-# name: Name |
37 |
-# password: Password |
38 |
-# current_password: Current Password |
39 |
-# password_confirmation: Password Confirmation |
40 |
-# email_address: Email Address |
41 |
-# attribute_help: |
42 |
-# user: |
43 |
-# email_address: We will never share your address with third parties |
44 |
+ activerecord: |
45 |
+ attribute_help: |
46 |
+ agenda_item: |
47 |
+ timelimits: "Enter reminders for this item. Each line should be a separate reminder in 'mm:ss <reminder message>' format" |
48 |
|
49 |
diff --git a/site/features/agenda_items.feature b/site/features/agenda_items.feature |
50 |
index 2507e2d..5a6dad7 100644 |
51 |
--- a/site/features/agenda_items.feature |
52 |
+++ b/site/features/agenda_items.feature |
53 |
@@ -58,3 +58,12 @@ Feature: Suggest Agenda Items |
54 |
Scenario: View discussion times |
55 |
Given some agenda item with discussion times |
56 |
Then I should see discussion times when viewing agenda items |
57 |
+ |
58 |
+ Scenario: Show view hint on timelimits format |
59 |
+ Given I am logged in as a council member |
60 |
+ When I follow "Suggest agenda item" |
61 |
+ Then I should see hint on timelimits format |
62 |
+ |
63 |
+ Given example agenda item |
64 |
+ When I am on newest agenda item edit page |
65 |
+ Then I should see hint on timelimits format |
66 |
|
67 |
diff --git a/site/features/step_definitions/agenda_item_steps.rb b/site/features/step_definitions/agenda_item_steps.rb |
68 |
index b600bad..4b18f7b 100644 |
69 |
--- a/site/features/step_definitions/agenda_item_steps.rb |
70 |
+++ b/site/features/step_definitions/agenda_item_steps.rb |
71 |
@@ -52,3 +52,8 @@ Then /^I should see discussion times when viewing agenda items$/ do |
72 |
Then "I should see \"#{item.discussion_time}\"" |
73 |
end |
74 |
end |
75 |
+ |
76 |
+Then /^I should see hint on timelimits format$/ do |
77 |
+ Then 'I should see "Enter reminders for this item. Each line should be a ' + |
78 |
+ 'separate reminder in \'mm:ss <reminder message>\' format" within ".input-help"' |
79 |
+end |
80 |
|
81 |
diff --git a/site/features/support/paths.rb b/site/features/support/paths.rb |
82 |
index 92e736e..8bd2f36 100644 |
83 |
--- a/site/features/support/paths.rb |
84 |
+++ b/site/features/support/paths.rb |
85 |
@@ -41,6 +41,9 @@ module NavigationHelpers |
86 |
when /newest agenda item page/ |
87 |
agenda_item_path(AgendaItem.last) |
88 |
|
89 |
+ when /newest agenda item edit page/ |
90 |
+ edit_agenda_item_path(AgendaItem.last) |
91 |
+ |
92 |
# Add more mappings here. |
93 |
# Here is an example that pulls values out of the Regexp: |
94 |
# |