moro-miso 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.0.5 / 2009-09-29
2
+
3
+ * merge l15n's changes, thanx.
4
+ * Update to match webrat steps in cucumber 0.3.101
5
+ * Fix translation of date and time
6
+
1
7
  == 0.0.4 / 2009-05-27
2
8
 
3
9
  * use webrat original steps via Given/When/Then from jp. steps.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ require 'lib/miso'
11
11
  include FileUtils
12
12
 
13
13
  use_rubyforge = false
14
- NAME = "miso"
14
+ NAME = "moro-miso"
15
15
  AUTHOR = "MOROHASHI Kyosuke"
16
16
  EMAIL = "moronatural@gmail.com"
17
17
  DESCRIPTION = "dip cukes into me."
data/lib/miso.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Miso
3
- Version = '0.0.4'
3
+ Version = '0.0.5'
4
4
  end
@@ -16,10 +16,30 @@ When /^"([^\"]*)"リンクをクリックする$/ do |link|
16
16
  When %Q(I follow "#{link}")
17
17
  end
18
18
 
19
+ # Order is opposite from original (English) version
20
+ When /^"([^\"]*)"の"([^\"]*)"リンクをクリックする$/ do |parent, link|
21
+ When %Q(I follow "#{link}" within "#{parent}")
22
+ end
23
+
19
24
  When /^"([^\"]*)"に"([^\"]*)"と入力する$/ do |field, value|
20
25
  When %Q(I fill in "#{field}" with "#{value}")
21
26
  end
22
27
 
28
+ # Use this to fill in an entire form with data from a table. Example:
29
+ #
30
+ # When I fill in the following:
31
+ # | Account Number | 5002 |
32
+ # | Expiry date | 2009-11-01 |
33
+ # | Note | Nice guy |
34
+ # | Wants Email? | |
35
+ #
36
+ # TODO: Add support for checkbox, select og option
37
+ # based on naming conventions.
38
+ #
39
+ When /^以下の項目を入力する:$/ do |fields|
40
+ When %Q(I fill in the following:), fields
41
+ end
42
+
23
43
  # opposite order from Engilsh one(original)
24
44
  When /^"([^\"]*)"から"([^\"]*)"を選択する$/ do |field, value|
25
45
  When %Q(I select "#{value}" from "#{field}")
@@ -49,27 +69,27 @@ end
49
69
  # When I select "2:20PM" as the time
50
70
  # Note: Rail's default time helper provides 24-hour time-- not 12 hour time. Webrat
51
71
  # will convert the 2:20PM to 14:20 and then select it.
52
- When /^日付として"([^\"]*)"を選択する$/ do |time|
72
+ When /^時間として"([^\"]*)"を選択する$/ do |time|
53
73
  When %Q(I select "#{time}" as the time)
54
74
  end
55
75
 
56
76
  # Use this step when using multiple time_select helpers on a page or you want to
57
77
  # specify the name of the time on the form. For example:
58
78
  # When I select "7:30AM" as the "Gym" time
59
- When /^"([^\"]*)"の日付として"([^\"]*)"を選択する$/ do |time_label, time|
79
+ When /^"([^\"]*)"の時間として"([^\"]*)"を選択する$/ do |time_label, time|
60
80
  When %Q(I select "#{time_label}" as the "#{time}" time)
61
81
  end
62
82
 
63
83
  # Use this step in conjunction with Rail's date_select helper. For example:
64
84
  # When I select "February 20, 1981" as the date
65
- When /^時間として"([^\"]*)"を選択する$/ do |date|
85
+ When /^日付として"([^\"]*)"を選択する$/ do |date|
66
86
  When %Q(I select "#{date}" as the date)
67
87
  end
68
88
 
69
89
  # Use this step when using multiple date_select helpers on one page or
70
90
  # you want to specify the name of the date on the form. For example:
71
91
  # When I select "April 26, 1982" as the "Date of Birth" date
72
- When /^"([^\"]*)"の時間として"([^\"]*)"を選択する$/ do |date_label, date|
92
+ When /^"([^\"]*)"の日付として"([^\"]*)"を選択する$/ do |date_label, date|
73
93
  When %Q(I select "#{datetime_label}" as the "#{date}" date)
74
94
  end
75
95
 
@@ -94,10 +114,18 @@ Then /^"([^\"]*)"と表示されていること$/ do |text|
94
114
  Then %Q(I should see "#{text}")
95
115
  end
96
116
 
117
+ Then /^\/([^\/]*)\/と表示されていること$/ do |regexp|
118
+ Then %Q(I should see /#{regexp}/)
119
+ end
120
+
97
121
  Then /^"([^\"]*)"と表示されていないこと$/ do |text|
98
122
  Then %Q(I should not see "#{text}")
99
123
  end
100
124
 
125
+ Then /^\/([^\/]*)\/と表示されていないこと$/ do |regexp|
126
+ Then %Q(I should not see /#{regexp}/)
127
+ end
128
+
101
129
  Then /^入力項目"([^\"]*)"に"([^\"]*)"と表示されていること$/ do |field, value|
102
130
  Then %Q(the "#{field}" field should contain "#{value}")
103
131
  end
@@ -110,7 +138,14 @@ Then /^"([^\"]*)"がチェックされていること$/ do |label|
110
138
  Then %Q(the "#{label}" checkbox should be checked)
111
139
  end
112
140
 
141
+ Then /^"([^\"]*)"がチェックされていないこと$/ do |label|
142
+ Then %Q(the "#{label}" checkbox should not be checked)
143
+ end
144
+
113
145
  Then /^"([^\"]*)"ページを表示していること$/ do |page_name|
114
146
  Then %Q(I should be on #{page_name})
115
147
  end
116
148
 
149
+ Then /^ページを表示する$/ do
150
+ Then %Q(show me the page)
151
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moro-miso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MOROHASHI Kyosuke
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-27 00:00:00 -07:00
13
- default_executable: miso-cheat
12
+ date: 2009-10-09 00:00:00 +09:00
13
+ default_executable:
14
14
  dependencies: []
15
15
 
16
16
  description: dip cukes into me.
@@ -30,13 +30,14 @@ files:
30
30
  - rails_generators/miso/miso_generator.rb
31
31
  - rails_generators/miso/templates/web_extra_ja_steps.rb
32
32
  - rails_generators/miso/templates/webrat_ja_steps.rb
33
- - bin/miso-cheat
34
33
  has_rdoc: true
35
- homepage: http://github.com/moro/miso/
34
+ homepage: http://github.com/moro/moro-miso/
35
+ licenses: []
36
+
36
37
  post_install_message:
37
38
  rdoc_options:
38
39
  - --title
39
- - miso documentation
40
+ - moro-miso documentation
40
41
  - --charset
41
42
  - utf-8
42
43
  - --opname
@@ -64,9 +65,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
65
  requirements: []
65
66
 
66
67
  rubyforge_project:
67
- rubygems_version: 1.2.0
68
+ rubygems_version: 1.3.5
68
69
  signing_key:
69
- specification_version: 2
70
+ specification_version: 3
70
71
  summary: dip cukes into me.
71
72
  test_files: []
72
73