rspec_api_test 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +3 -0
- data/.rvmrc +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +78 -0
- data/Guardfile +30 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +104 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/lib/rspec_api_test/http_helpers.rb +60 -0
- data/lib/rspec_api_test.rb +6 -0
- data/rspec_api_test.gemspec +93 -0
- data/spec/fixtures/400.yml +110 -0
- data/spec/fixtures/404.yml +106 -0
- data/spec/fixtures/json_array.yml +1039 -0
- data/spec/fixtures/json_hash.yml +54 -0
- data/spec/lib/rspec_api_test/http_helpers_spec.rb +90 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/vcr_setup.rb +17 -0
- metadata +263 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9292/nodes/999999999
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 404
|
21
|
+
message: ! 'Not Found '
|
22
|
+
headers:
|
23
|
+
X-Frame-Options:
|
24
|
+
- sameorigin
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '6088'
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- ! '*'
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST, OPTIONS, PUT
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '86400'
|
41
|
+
Server:
|
42
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2012-02-22)
|
43
|
+
Date:
|
44
|
+
- Mon, 18 Feb 2013 16:16:19 GMT
|
45
|
+
Connection:
|
46
|
+
- Keep-Alive
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ! '{"success":false,"reason":"Could not find object with id=999999999","backtrace":"/Users/jannis/Dev/core/sheldon-moviepilot/lib/sheldon/app/node.rb:26:in
|
50
|
+
`find!''\n/Users/jannis/Dev/core/sheldon-moviepilot/lib/sinatra/app/nodes.rb:11:in
|
51
|
+
`HEAD /nodes/:id''\norg/jruby/RubyMethod.java:121:in `call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:1264:in
|
52
|
+
`compile!''\norg/jruby/RubyProc.java:258:in `call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in
|
53
|
+
`route!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in
|
54
|
+
`route_eval''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in
|
55
|
+
`route!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in
|
56
|
+
`process_route''\norg/jruby/RubyKernel.java:1197:in `catch''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in
|
57
|
+
`process_route''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:834:in
|
58
|
+
`route!''\norg/jruby/RubyArray.java:1615:in `each''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in
|
59
|
+
`route!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:936:in
|
60
|
+
`dispatch!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/sinatra.rb:48:in
|
61
|
+
`dispatch_with_newrelic''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:268:in
|
62
|
+
`perform_action_with_newrelic_trace''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:240:in
|
63
|
+
`trace_execution_scoped''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:239:in
|
64
|
+
`trace_execution_scoped''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in
|
65
|
+
`perform_action_with_newrelic_trace''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:262:in
|
66
|
+
`perform_action_with_newrelic_trace''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/sinatra.rb:45:in
|
67
|
+
`dispatch_with_newrelic''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in
|
68
|
+
`call!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in
|
69
|
+
`invoke''\norg/jruby/RubyKernel.java:1197:in `catch''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in
|
70
|
+
`invoke''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in
|
71
|
+
`call!''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:755:in
|
72
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
|
73
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
|
74
|
+
`call''\n/Users/jannis/Dev/core/sheldon-moviepilot/lib/rack/jsonp.rb:13:in
|
75
|
+
`call''\n/Users/jannis/Dev/core/sheldon-moviepilot/lib/rack/header_control.rb:10:in
|
76
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
|
77
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in
|
78
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in
|
79
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in
|
80
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in
|
81
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/logger.rb:15:in
|
82
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:129:in
|
83
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/head.rb:9:in
|
84
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
|
85
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:99:in
|
86
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in
|
87
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:1471:in
|
88
|
+
`synchronize''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in
|
89
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/newrelic_rpm-3.5.5.38/lib/new_relic/rack/developer_mode.rb:24:in
|
90
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/lint.rb:48:in
|
91
|
+
`_call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/lint.rb:36:in
|
92
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/showexceptions.rb:24:in
|
93
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in
|
94
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/sinatra-1.3.3/lib/sinatra/base.rb:136:in
|
95
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/chunked.rb:43:in
|
96
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
|
97
|
+
`call''\n/Users/jannis/.rvm/gems/jruby-1.6.7@sheldon/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in
|
98
|
+
`service''\n/Users/jannis/.rvm/rubies/jruby-1.6.7/lib/ruby/1.9/webrick/httpserver.rb:111:in
|
99
|
+
`service''\n/Users/jannis/.rvm/rubies/jruby-1.6.7/lib/ruby/1.9/webrick/httpserver.rb:70:in
|
100
|
+
`run''\n/Users/jannis/.rvm/rubies/jruby-1.6.7/lib/ruby/1.9/webrick/httpserver.rb:48:in
|
101
|
+
`run''\n/Users/jannis/.rvm/rubies/jruby-1.6.7/lib/ruby/1.9/webrick/server.rb:183:in
|
102
|
+
`start_thread''\n/Users/jannis/.rvm/rubies/jruby-1.6.7/lib/ruby/1.9/webrick/server.rb:173:in
|
103
|
+
`start_thread''"}'
|
104
|
+
http_version:
|
105
|
+
recorded_at: Mon, 18 Feb 2013 16:16:19 GMT
|
106
|
+
recorded_with: VCR 2.4.0
|