barthes 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/example/q3_spec.json CHANGED
@@ -3,17 +3,17 @@
3
3
  ["action", "create queue with CreateQueue API", {
4
4
  "params": {
5
5
  "Action": "CreateQueue",
6
- "QueueName": "takeuchitest"
6
+ "QueueName": "tilytest"
7
7
  },
8
8
  "expectations": [
9
9
  {
10
10
  "type": "response_code",
11
- "value": 200
11
+ "value": 400
12
12
  },
13
13
  {
14
14
  "type": "xpath_value",
15
15
  "xpath": "//CreateQueueResponse/CreateQueueResult/QueueUrl",
16
- "value": "http://q3-global.herokuapp.com/*/takeuchitest"
16
+ "value": "http://q3-global.herokuapp.com/*/tilytest"
17
17
  }
18
18
  ]
19
19
  }],
@@ -27,9 +27,9 @@
27
27
  "value": 200
28
28
  },
29
29
  {
30
- "type": "xpath_value",
31
- "xpath": "ListQueuesResponse/ListQueuesResult/QueueUrl[1]",
32
- "value": "http://q3-global.herokuapp.com/*/takeuchitest"
30
+ "type": "xpath_size",
31
+ "xpath": "ListQueuesResponse/ListQueuesResult/QueueUrl[text()='http://q3-global.herokuapp.com/*/tilytest']",
32
+ "value": 1
33
33
  }
34
34
  ]
35
35
  }],
@@ -39,7 +39,7 @@
39
39
  "MessageBody": "hello barthes"
40
40
  },
41
41
  "env": {
42
- "path": "/*/takeuchitest"
42
+ "path": "/*/tilytest"
43
43
  },
44
44
  "expectations": [
45
45
  {
@@ -53,7 +53,7 @@
53
53
  "Action": "ReceiveMessage"
54
54
  },
55
55
  "env": {
56
- "path": "/*/takeuchitest"
56
+ "path": "/*/tilytest"
57
57
  },
58
58
  "expectations": [
59
59
  {
@@ -66,6 +66,7 @@ module Barthes
66
66
  if !Barthes::Cache.empty?
67
67
  File.write Barthes::Config[:cache], JSON.pretty_generate(Barthes::Cache) + "\n"
68
68
  end
69
+ exit @failed ? 1 : 0
69
70
  end
70
71
 
71
72
  def in_range?
@@ -1,3 +1,3 @@
1
1
  module Barthes
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barthes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
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-11-11 00:00:00.000000000 Z
12
+ date: 2014-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  segments:
233
233
  - 0
234
- hash: 1817966568937043709
234
+ hash: -4223808324431117070
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  none: false
237
237
  requirements:
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  segments:
242
242
  - 0
243
- hash: 1817966568937043709
243
+ hash: -4223808324431117070
244
244
  requirements: []
245
245
  rubyforge_project:
246
246
  rubygems_version: 1.8.24