riot-gear 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/CHANGELOG +4 -0
- data/lib/riot/gear/context/asserts_status.rb +5 -4
- data/lib/riot/gear/version.rb +1 -1
- data/test/riotparty_proxy_methods_test.rb +1 -1
- metadata +14 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a85e9ec0d3bde6eb410beb4ff3f8fe1f31c067e5
|
4
|
+
data.tar.gz: 1b7443dcc8fdfee8b956d13795826e86651a72c6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7a0aa096744cd1c1014bcc7c228382bed0c7886d5fea91166eb2b01fa02b5bc8e6ee16c5bc2b020d7ff795bc4b00f85b6657e543bace3d2431509bb7246a1922
|
7
|
+
data.tar.gz: 58c3ccd3998c398c89f83d170e92e1dcdc54fbb655f285fd61c3ccccc374513bc61d8d933bdc032f1773965bba823f041f9b6e1cba26ed807b791302a5d121e0
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
@@ -4,14 +4,15 @@ module Riot
|
|
4
4
|
module Gear
|
5
5
|
module AssertsStatus
|
6
6
|
|
7
|
-
# Generates an assertion that retrieves the status code from the last response.
|
8
|
-
# be an integer.
|
7
|
+
# Generates an assertion that retrieves the status code from the last response. If a response
|
8
|
+
# name is provided, that named response will be used instead. The status code will be an integer.
|
9
9
|
#
|
10
10
|
# asserts_status.equals(200)
|
11
11
|
#
|
12
|
+
# @param [String,Symbol] response_name Name of response to check status code of
|
12
13
|
# @return [Riot::Assertion] an assertion block that macros can be applied to
|
13
|
-
def asserts_status
|
14
|
-
asserts("status code") { response.code }
|
14
|
+
def asserts_status(response_name=nil)
|
15
|
+
asserts("status code") { response(response_name).code }
|
15
16
|
end
|
16
17
|
|
17
18
|
end # AssertsStatus
|
data/lib/riot/gear/version.rb
CHANGED
@@ -51,7 +51,7 @@ context "A Riot Gear context" do
|
|
51
51
|
|
52
52
|
asserts("providing an invalid format") do
|
53
53
|
topic.format :boogers
|
54
|
-
end.raises(HTTParty::UnsupportedFormat,
|
54
|
+
end.raises(HTTParty::UnsupportedFormat, /':boogers' Must be one of:/)
|
55
55
|
|
56
56
|
debug_output StringIO.new
|
57
57
|
asserts("default options for debug_output") do
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riot-gear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.13
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Justin 'Gus' Knowlden
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: riot
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.12.6
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.12.6
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: httparty
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.12.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.12.0
|
46
41
|
description: Riot + HTTParty smoke testing framework. You'd use it for integration
|
@@ -50,9 +45,9 @@ executables: []
|
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
|
-
- .gitignore
|
54
|
-
- .travis.yml
|
55
|
-
- .yardopts
|
48
|
+
- ".gitignore"
|
49
|
+
- ".travis.yml"
|
50
|
+
- ".yardopts"
|
56
51
|
- CHANGELOG
|
57
52
|
- Gemfile
|
58
53
|
- MIT-LICENSE
|
@@ -83,27 +78,26 @@ files:
|
|
83
78
|
- test/teststrap.rb
|
84
79
|
homepage: http://github.com/thumblemonks/riot-gear
|
85
80
|
licenses: []
|
81
|
+
metadata: {}
|
86
82
|
post_install_message:
|
87
83
|
rdoc_options: []
|
88
84
|
require_paths:
|
89
85
|
- lib
|
90
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
87
|
requirements:
|
93
|
-
- -
|
88
|
+
- - ">="
|
94
89
|
- !ruby/object:Gem::Version
|
95
90
|
version: '0'
|
96
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
92
|
requirements:
|
99
|
-
- -
|
93
|
+
- - ">="
|
100
94
|
- !ruby/object:Gem::Version
|
101
95
|
version: '0'
|
102
96
|
requirements: []
|
103
97
|
rubyforge_project:
|
104
|
-
rubygems_version:
|
98
|
+
rubygems_version: 2.2.2
|
105
99
|
signing_key:
|
106
|
-
specification_version:
|
100
|
+
specification_version: 4
|
107
101
|
summary: Riot + HTTParty smoke testing framework.
|
108
102
|
test_files:
|
109
103
|
- test/actions/delete_test.rb
|