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.
@@ -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
@@ -3,6 +3,8 @@
3
3
  *.tmproj
4
4
  pkg/*
5
5
  .rvmrc
6
+ .ruby-version
7
+ .ruby-gemset
6
8
  *.swp
7
9
  .watchr
8
10
  .yardoc
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  # @markup markdown
2
2
 
3
+ # 0.0.13
4
+
5
+ * Allow `asserts_status` to inspect named responses [jaknowlden]
6
+
3
7
  # 0.0.12
4
8
 
5
9
  * Allow OPTIONS HTTP calls [rquinlivan]
@@ -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. The statuc code will
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
@@ -1,5 +1,5 @@
1
1
  module Riot
2
2
  module Gear
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -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, "':boogers' Must be one of: csv, html, json, plain, xml")
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.12
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-04-23 00:00:00.000000000 Z
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: 1.8.25
98
+ rubygems_version: 2.2.2
105
99
  signing_key:
106
- specification_version: 3
100
+ specification_version: 4
107
101
  summary: Riot + HTTParty smoke testing framework.
108
102
  test_files:
109
103
  - test/actions/delete_test.rb