dock_test 0.1.0 → 0.1.1

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: 2593cb3492af382c4c090f672028a58e0a3b9c0b
4
- data.tar.gz: 4bee1ab15ad6a3c4b9338abb3ec440fe712f07f0
3
+ metadata.gz: 6428ec4296e609ae46c0982e22596bf1eb73e7ae
4
+ data.tar.gz: 34eedfb10543be92875c61c432dddf804a71aaaf
5
5
  SHA512:
6
- metadata.gz: 76960e6d4db18d638ba19ad7d55c737338aa751db20b66a7f13e925ec87fc69b1ffd044b6f1736aeaa0150c467ca074ad62d504bb8004e11f728ce8be4e9a182
7
- data.tar.gz: eecf368bab9ce45dd794f97cbdb9b91ab09b5edb58bfe42390c38940f33a3e1b34fd74567137e6e9b7f6384b57608afaec4fc2d8d2f7c22d5de66748f1cc807c
6
+ metadata.gz: 6ae1e4fb5dadb27b972499c2bca9ea639e88a456821ef39ab569ccd6973f27fa6ee6d3e32e721402c88cc64b0da90ac3453a54174faf250eb6b910e0d22a9074
7
+ data.tar.gz: b4270bc7898e55ee98ecf4680e3171975b2aa3fe9244f92ef5fc51db4815e4223585a0d0078eeb4208a592a6d9c351b8bed3909855e37742bc6989c518c2cd3f
data/Rakefile CHANGED
@@ -1,2 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |test|
6
+ test.libs << 'test'
7
+ test.pattern = 'test/**/test_*.rb'
8
+ test.verbose = true
9
+ end
data/lib/dock_test/dsl.rb CHANGED
@@ -10,6 +10,9 @@ module DockTest
10
10
  if localhost? && @server_thread.nil?
11
11
  require "rack"
12
12
  require 'webrick'
13
+
14
+ ARGV.clear # clear ARGV as it is used by Rack to configure server
15
+
13
16
  server = WEBrick::HTTPServer.new(:Port => port).tap do |server|
14
17
  server.mount '/', Rack::Handler::WEBrick, Rack::Server.new.app
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module DockTest
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -16,7 +16,7 @@ class TestAssertions < Minitest::Test
16
16
 
17
17
  def test_assert_response_headers_method
18
18
  get '/path?foo=bar', {a: :b}, {'CONTENT_TYPE' => 'application/json'}
19
- assert_response_headers({"content-type"=>["application/json"], "content-length"=>["218"], "connection"=>["Keep-Alive"]} , {exclude: ['server', 'date']})
19
+ assert_response_headers({"content-type"=>["application/json"]} , {exclude: ['content-length', 'server', 'connection', 'date', 'via']})
20
20
  end
21
21
 
22
22
  def test_assert_response_body_method
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dock_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Xu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json