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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f3a95dbd602655f5f9912cf0dd7c4e09be76368
4
- data.tar.gz: b72232f7b1ca118d77a9c0bd9b42dea8cc6e7674
3
+ metadata.gz: 53cc2928e8e142195990ea7367b72de945d107d5
4
+ data.tar.gz: 089061de057dc1b9a2681224d8c2559fd142bc47
5
5
  SHA512:
6
- metadata.gz: b964ae3224bfba3a4db3534db6b241478743742efc8e5507f9f68a3ba25b5bb5f87b6c6f8b60af625c2ffcae5e0cad9147907751af40c52b9c315ce8a68b0deb
7
- data.tar.gz: 1301b091fa0d7a1119147738427091d131101d4a4fbb0c63c1af13d4dfe6a809be041a540eb31fff65e4c03ef689a82fb7c1ffe942b1a3c9e1da2daef26ae99f
6
+ metadata.gz: 0e3735adc2f1faa728865587136513cfc49e1a2967e2f02659134626fcb7fef1d7a9aa551d9b48e73b389e802d542196eec163f742e4a7226abbf0ec540f0e33
7
+ data.tar.gz: 607b4dd9859676e32e22eaad56ccd1a728930db31b972c513c2e7510429c21fce5d7705fdde5615114b5eed7b7f73fc7e82c5db5108d96382e926569dabba4f5
data/README.md CHANGED
@@ -143,7 +143,7 @@ If you have an existing Rack application like `sinatra` or `grape` you can run A
143
143
 
144
144
  ```ruby
145
145
  Airborne.configure do |config|
146
- config.rack_app = MySinatraApp
146
+ config.rack_app = MySinatraApp
147
147
  end
148
148
  ```
149
149
 
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.10'
4
- s.date = '2015-01-06'
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] || {}, options[:headers] || {})
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.10
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-06 00:00:00.000000000 Z
12
+ date: 2015-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec