coulda_web_steps 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coulda_web_steps}
8
- s.version = "0.6.2"
8
+ s.version = "0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["elight"]
12
- s.date = %q{2010-12-24}
12
+ s.date = %q{2011-1-26}
13
13
  s.description = %q{Provides reusable steps for Coulda acceptance testing of Rack/Rails applications}
14
14
  s.email = %q{evan@tripledogdare.net}
15
15
  s.extra_rdoc_files = [
@@ -66,6 +66,16 @@ module Coulda
66
66
  end
67
67
  end
68
68
 
69
+ def then_i_should_be_on(path, *args)
70
+ humanized_path = path.to_s.gsub /_/, " "
71
+ Then "I should be on #{humanized_path}" do
72
+ instance_var_args = args.inject([]) do |new_args, arg|
73
+ new_args << instance_variable_get("@#{arg}")
74
+ end
75
+ assert current_path, __send__(path, *instance_var_args)
76
+ end
77
+ end
78
+
69
79
  # Visits the page specified by *path* and creates a step like
70
80
  # "When I visit the pork chop sandwich kitchen"
71
81
  # @param path A Symbol giving the name of the helper to invoke to generate a path
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coulda_web_steps
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 1
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 6
8
- - 2
9
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - elight
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-12-24 00:00:00 -05:00
18
+ date: 2011-01-26 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
29
+ hash: 11
28
30
  segments:
29
31
  - 1
30
32
  - 4
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ~>
42
44
  - !ruby/object:Gem::Version
45
+ hash: 7
43
46
  segments:
44
47
  - 0
45
48
  - 6
@@ -55,6 +58,7 @@ dependencies:
55
58
  requirements:
56
59
  - - ~>
57
60
  - !ruby/object:Gem::Version
61
+ hash: 15
58
62
  segments:
59
63
  - 0
60
64
  - 4
@@ -70,6 +74,7 @@ dependencies:
70
74
  requirements:
71
75
  - - ~>
72
76
  - !ruby/object:Gem::Version
77
+ hash: 31
73
78
  segments:
74
79
  - 1
75
80
  - 3
@@ -85,6 +90,7 @@ dependencies:
85
90
  requirements:
86
91
  - - ">="
87
92
  - !ruby/object:Gem::Version
93
+ hash: 3
88
94
  segments:
89
95
  - 0
90
96
  version: "0"
@@ -98,6 +104,7 @@ dependencies:
98
104
  requirements:
99
105
  - - ~>
100
106
  - !ruby/object:Gem::Version
107
+ hash: 7
101
108
  segments:
102
109
  - 0
103
110
  - 6
@@ -113,6 +120,7 @@ dependencies:
113
120
  requirements:
114
121
  - - ~>
115
122
  - !ruby/object:Gem::Version
123
+ hash: 23
116
124
  segments:
117
125
  - 1
118
126
  - 0
@@ -128,6 +136,7 @@ dependencies:
128
136
  requirements:
129
137
  - - ~>
130
138
  - !ruby/object:Gem::Version
139
+ hash: 1
131
140
  segments:
132
141
  - 1
133
142
  - 5
@@ -168,6 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
177
  requirements:
169
178
  - - ">="
170
179
  - !ruby/object:Gem::Version
180
+ hash: 3
171
181
  segments:
172
182
  - 0
173
183
  version: "0"
@@ -176,6 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
186
  requirements:
177
187
  - - ">="
178
188
  - !ruby/object:Gem::Version
189
+ hash: 3
179
190
  segments:
180
191
  - 0
181
192
  version: "0"