rwebspec 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/lib/rwebspec/test_utils.rb +11 -13
- data/lib/rwebspec.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -71,7 +71,7 @@ end
|
|
71
71
|
spec = Gem::Specification.new do |s|
|
72
72
|
s.platform= Gem::Platform::RUBY
|
73
73
|
s.name = "rwebspec"
|
74
|
-
s.version = "2.0.
|
74
|
+
s.version = "2.0.4"
|
75
75
|
s.summary = "Web application functional specification in Ruby"
|
76
76
|
s.description = "Executable functional specification for web applications in RSpec syntax and Watir"
|
77
77
|
|
data/lib/rwebspec/test_utils.rb
CHANGED
@@ -3,19 +3,6 @@
|
|
3
3
|
#* Distributed open-source, see full license in MIT-LICENSE
|
4
4
|
#***********************************************************
|
5
5
|
|
6
|
-
|
7
|
-
class Array
|
8
|
-
|
9
|
-
def average
|
10
|
-
inject(0.0) { |sum, e| sum + e } / length
|
11
|
-
end
|
12
|
-
|
13
|
-
# why it is removed total
|
14
|
-
def sum
|
15
|
-
inject(0.0) { |sum, e| sum + e }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
6
|
# useful hekoer methods for testing
|
20
7
|
#
|
21
8
|
module RWebSpec
|
@@ -217,5 +204,16 @@ module RWebSpec
|
|
217
204
|
return :au
|
218
205
|
end
|
219
206
|
|
207
|
+
|
208
|
+
def average_of(array)
|
209
|
+
array.inject(0.0) { |sum, e| sum + e } / array.length
|
210
|
+
end
|
211
|
+
|
212
|
+
# NOTE might cause issues
|
213
|
+
# why it is removed total
|
214
|
+
def sum_of(array)
|
215
|
+
array.inject(0.0) { |sum, e| sum + e }
|
216
|
+
end
|
217
|
+
|
220
218
|
end
|
221
219
|
end
|
data/lib/rwebspec.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 2.0.
|
8
|
+
- 4
|
9
|
+
version: 2.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Zhimin Zhan
|
@@ -14,7 +14,7 @@ autorequire: rwebspec
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-12-
|
17
|
+
date: 2011-12-29 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|