turd 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/turd/assert.rb +2 -2
- data/lib/turd/version.rb +1 -1
- metadata +3 -3
data/lib/turd/assert.rb
CHANGED
@@ -12,13 +12,13 @@ module Turd
|
|
12
12
|
if response[:response].include?(v)
|
13
13
|
return response
|
14
14
|
else
|
15
|
-
response.
|
15
|
+
response.store(:failed, option)
|
16
16
|
raise AssertionFailure.new(response), "#{option} substring failure. expected #{v}, got #{response}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
elsif option == :total_time
|
20
20
|
if response[:total_time] > value
|
21
|
-
response.
|
21
|
+
response.store(:failed, option)
|
22
22
|
raise AssertionFailure.new(response), "#{option} timing value was greater than allowed. expected #{value}, got #{response[:total_time]}"
|
23
23
|
else
|
24
24
|
return response
|
data/lib/turd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
@@ -34,11 +34,11 @@ extensions: []
|
|
34
34
|
extra_rdoc_files:
|
35
35
|
- README.md
|
36
36
|
files:
|
37
|
+
- lib/turd.rb
|
37
38
|
- lib/turd/assert.rb
|
38
39
|
- lib/turd/http.rb
|
39
40
|
- lib/turd/tcp.rb
|
40
41
|
- lib/turd/version.rb
|
41
|
-
- lib/turd.rb
|
42
42
|
- README.md
|
43
43
|
homepage: http://github.com/joewilliams/turd
|
44
44
|
licenses: []
|