airborne 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/airborne.gemspec +2 -2
- data/lib/airborne/request_expectations.rb +1 -1
- data/spec/airborne/expectations/expect_json_lambda_spec.rb +1 -1
- data/spec/airborne/expectations/expect_json_path_spec.rb +2 -2
- data/spec/airborne/expectations/expect_json_types_lambda_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 486fe6abca542928748456f3d900ac4aaea5c26a
|
4
|
+
data.tar.gz: 9b8c95a34c4a2fe711151c9490fda2076faf9e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f22bd4edc12c5c691c3b046327ed75473038bf86ca9265a7e4eca939d2f883311eff8681d806fe0d4928649bec2f5f2ab4e96e7c95acadf6e2ed7282380b1f6
|
7
|
+
data.tar.gz: 5fcb3767a985b301aa7e1d696b80f1aafc11aebdb27e994f64cf137fd67f8b7a82cc835c38d16c146cf52440174b8c16c40afcc4c81fbb79e97c9a4d260723be
|
data/airborne.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'airborne'
|
3
|
-
s.version = '0.1.
|
4
|
-
s.date = '2014-11-
|
3
|
+
s.version = '0.1.3'
|
4
|
+
s.date = '2014-11-17'
|
5
5
|
s.summary = "RSpec driven API testing framework"
|
6
6
|
s.authors = ["Alex Friedman", "Seth Pollack"]
|
7
7
|
s.email = ['a.friedman07@gmail.com', 'teampollack@gmail.com']
|
@@ -211,7 +211,7 @@ module Airborne
|
|
211
211
|
# @param expected_size [Integer]
|
212
212
|
# @return [Proc]
|
213
213
|
def convert_expectation_for_json_sizes(expected_size)
|
214
|
-
->
|
214
|
+
->(data) { expect(data.size).to eq(expected_size) }
|
215
215
|
end
|
216
216
|
|
217
217
|
def is_property?(expectations)
|
@@ -60,13 +60,13 @@ describe 'expect_json with path' do
|
|
60
60
|
it 'should check for one match that matches all with lambda' do
|
61
61
|
mock_get('array_with_nested')
|
62
62
|
get '/array_with_nested'
|
63
|
-
expect_json('cars.?.owners.*', {name: ->
|
63
|
+
expect_json('cars.?.owners.*', {name: ->(name){expect(name).to eq("Bart Simpson")}})
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'should ensure one match that matches all with lambda' do
|
67
67
|
mock_get('array_with_nested')
|
68
68
|
get '/array_with_nested'
|
69
|
-
expect{expect_json('cars.?.owners.*', {name: ->
|
69
|
+
expect{expect_json('cars.?.owners.*', {name: ->(name){expect(name).to eq("Bart Simpsons")}})}.to raise_error
|
70
70
|
end
|
71
71
|
|
72
72
|
it 'should ensure one match that matches all' do
|
@@ -5,7 +5,7 @@ describe 'expect_json_types lambda' do
|
|
5
5
|
it 'should invoke proc passed in' do
|
6
6
|
mock_get('simple_get')
|
7
7
|
get '/simple_get'
|
8
|
-
expect_json_types({name: ->
|
8
|
+
expect_json_types({name: ->(name){expect(name.length).to eq(4)}})
|
9
9
|
end
|
10
10
|
|
11
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airborne
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Friedman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.2.0
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: RSpec driven API testing framework
|