airborne 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/airborne.gemspec +2 -2
- data/lib/airborne/rack_test_requester.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53cc2928e8e142195990ea7367b72de945d107d5
|
4
|
+
data.tar.gz: 089061de057dc1b9a2681224d8c2559fd142bc47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e3735adc2f1faa728865587136513cfc49e1a2967e2f02659134626fcb7fef1d7a9aa551d9b48e73b389e802d542196eec163f742e4a7226abbf0ec540f0e33
|
7
|
+
data.tar.gz: 607b4dd9859676e32e22eaad56ccd1a728930db31b972c513c2e7510429c21fce5d7705fdde5615114b5eed7b7f73fc7e82c5db5108d96382e926569dabba4f5
|
data/README.md
CHANGED
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 = '2015-01-
|
3
|
+
s.version = '0.1.11'
|
4
|
+
s.date = '2015-01-30'
|
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']
|
@@ -3,8 +3,11 @@ require 'rack/test'
|
|
3
3
|
module Airborne
|
4
4
|
module RackTestRequester
|
5
5
|
def make_request(method, url, options = {})
|
6
|
+
headers = options[:headers] || {}
|
7
|
+
base_headers = Airborne.configuration.headers || {}
|
8
|
+
headers = base_headers.merge(headers)
|
6
9
|
browser = Rack::Test::Session.new(Rack::MockSession.new(Airborne.configuration.rack_app))
|
7
|
-
browser.send(method, url, options[:body] || {},
|
10
|
+
browser.send(method, url, options[:body] || {}, headers)
|
8
11
|
Rack::MockResponse.class_eval do
|
9
12
|
alias_method :code, :status
|
10
13
|
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.11
|
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: 2015-01-
|
12
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|