rspec_api_test 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,4 +3,3 @@ rvm:
3
3
  - "1.9.2"
4
4
  - "1.9.3"
5
5
  - jruby-19mode # JRuby in 1.9 mode
6
- - rbx-19mode
@@ -46,6 +46,10 @@ describe "CRUD" do
46
46
  it "creates a new user" do
47
47
  response.code.should == 201
48
48
  end
49
+
50
+ it "returned some location header" do
51
+ response.headers[:location].should_not be_blank
52
+ end
49
53
 
50
54
  it "returned the correct id" do
51
55
  u = get("/users/#{response[:id]}")
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -1,4 +1,5 @@
1
1
  require 'rspec'
2
+ require 'rest-client'
2
3
  require 'rspec_api_test/http_helpers'
3
4
 
4
5
  RSpec.configure do |c|
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rspec_api_test"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jannis Hermanns"]
12
- s.date = "2013-02-18"
12
+ s.date = "2014-01-30"
13
13
  s.description = "Test a JSON-API using rspec and simple get/put/post/delete helpers"
14
14
  s.email = "jannis@moviepilot.com"
15
15
  s.extra_rdoc_files = [
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.homepage = "http://github.com/jayniz/rspec-api-test"
43
43
  s.licenses = ["MIT"]
44
44
  s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.24"
45
+ s.rubygems_version = "1.8.25"
46
46
  s.summary = "Makes JSON-API integration testing easier with rspec"
47
47
 
48
48
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,208 +1,208 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_api_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
4
  prerelease:
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jannis Hermanns
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-18 00:00:00.000000000 Z
12
+ date: 2014-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
+ type: :runtime
16
17
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
22
  none: false
23
+ version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - ! '>='
28
26
  - !ruby/object:Gem::Version
29
27
  version: '0'
28
+ none: false
29
+ prerelease: false
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
+ type: :runtime
32
33
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: 2.0.0
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
38
  none: false
39
+ version_requirements: !ruby/object:Gem::Requirement
42
40
  requirements:
43
41
  - - ! '>='
44
42
  - !ruby/object:Gem::Version
45
43
  version: 2.0.0
44
+ none: false
45
+ prerelease: false
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rest-client
48
+ type: :runtime
48
49
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
54
  none: false
55
+ version_requirements: !ruby/object:Gem::Requirement
58
56
  requirements:
59
57
  - - ! '>='
60
58
  - !ruby/object:Gem::Version
61
59
  version: '0'
60
+ none: false
61
+ prerelease: false
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: activesupport
64
+ type: :runtime
64
65
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
66
  requirements:
67
67
  - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
70
  none: false
71
+ version_requirements: !ruby/object:Gem::Requirement
74
72
  requirements:
75
73
  - - ! '>='
76
74
  - !ruby/object:Gem::Version
77
75
  version: '0'
76
+ none: false
77
+ prerelease: false
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: jeweler
80
+ type: :development
80
81
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
82
  requirements:
83
83
  - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
86
  none: false
87
+ version_requirements: !ruby/object:Gem::Requirement
90
88
  requirements:
91
89
  - - ! '>='
92
90
  - !ruby/object:Gem::Version
93
91
  version: '0'
92
+ none: false
93
+ prerelease: false
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: webmock
96
+ type: :development
96
97
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
98
  requirements:
99
99
  - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
102
  none: false
103
+ version_requirements: !ruby/object:Gem::Requirement
106
104
  requirements:
107
105
  - - ! '>='
108
106
  - !ruby/object:Gem::Version
109
107
  version: '0'
108
+ none: false
109
+ prerelease: false
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: vcr
112
+ type: :development
112
113
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
114
  requirements:
115
115
  - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
118
  none: false
119
+ version_requirements: !ruby/object:Gem::Requirement
122
120
  requirements:
123
121
  - - ! '>='
124
122
  - !ruby/object:Gem::Version
125
123
  version: '0'
124
+ none: false
125
+ prerelease: false
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: guard
128
+ type: :development
128
129
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
130
  requirements:
131
131
  - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
134
  none: false
135
+ version_requirements: !ruby/object:Gem::Requirement
138
136
  requirements:
139
137
  - - ! '>='
140
138
  - !ruby/object:Gem::Version
141
139
  version: '0'
140
+ none: false
141
+ prerelease: false
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: guard-rspec
144
+ type: :development
144
145
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
146
  requirements:
147
147
  - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
150
  none: false
151
+ version_requirements: !ruby/object:Gem::Requirement
154
152
  requirements:
155
153
  - - ! '>='
156
154
  - !ruby/object:Gem::Version
157
155
  version: '0'
156
+ none: false
157
+ prerelease: false
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: guard-bundler
160
+ type: :development
160
161
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
162
  requirements:
163
163
  - - ! '>='
164
164
  - !ruby/object:Gem::Version
165
165
  version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
166
  none: false
167
+ version_requirements: !ruby/object:Gem::Requirement
170
168
  requirements:
171
169
  - - ! '>='
172
170
  - !ruby/object:Gem::Version
173
171
  version: '0'
172
+ none: false
173
+ prerelease: false
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: terminal-notifier
176
+ type: :development
176
177
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
178
  requirements:
179
179
  - - ! '>='
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
182
  none: false
183
+ version_requirements: !ruby/object:Gem::Requirement
186
184
  requirements:
187
185
  - - ! '>='
188
186
  - !ruby/object:Gem::Version
189
187
  version: '0'
188
+ none: false
189
+ prerelease: false
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: rb-fsevent
192
+ type: :development
192
193
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
194
  requirements:
195
195
  - - ! '>='
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
- type: :development
199
- prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
198
  none: false
199
+ version_requirements: !ruby/object:Gem::Requirement
202
200
  requirements:
203
201
  - - ! '>='
204
202
  - !ruby/object:Gem::Version
205
203
  version: '0'
204
+ none: false
205
+ prerelease: false
206
206
  description: Test a JSON-API using rspec and simple get/put/post/delete helpers
207
207
  email: jannis@moviepilot.com
208
208
  executables: []
@@ -240,23 +240,23 @@ rdoc_options: []
240
240
  require_paths:
241
241
  - lib
242
242
  required_ruby_version: !ruby/object:Gem::Requirement
243
- none: false
244
243
  requirements:
245
244
  - - ! '>='
246
245
  - !ruby/object:Gem::Version
247
- version: '0'
248
246
  segments:
249
247
  - 0
250
- hash: 2428912611001349189
251
- required_rubygems_version: !ruby/object:Gem::Requirement
248
+ hash: -3240281354905897601
249
+ version: '0'
252
250
  none: false
251
+ required_rubygems_version: !ruby/object:Gem::Requirement
253
252
  requirements:
254
253
  - - ! '>='
255
254
  - !ruby/object:Gem::Version
256
255
  version: '0'
256
+ none: false
257
257
  requirements: []
258
258
  rubyforge_project:
259
- rubygems_version: 1.8.24
259
+ rubygems_version: 1.8.25
260
260
  signing_key:
261
261
  specification_version: 3
262
262
  summary: Makes JSON-API integration testing easier with rspec