http_stub 0.11.3 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ module HttpStub
14
14
  "parameters" => HttpStub::Configurer::Request::ControllableValue.format(options[:parameters] || {}),
15
15
  "response" => {
16
16
  "status" => options[:response][:status] || "",
17
- "content_type" => options[:response][:content_type] || "application/json",
17
+ "headers" => options[:response][:headers] || {},
18
18
  "body" => options[:response][:body],
19
19
  "delay_in_seconds" => options[:response][:delay_in_seconds] || ""
20
20
  }
@@ -5,10 +5,13 @@ module HttpStub
5
5
 
6
6
  private
7
7
 
8
- DEFAULT_OPTIONS = { "status" => 200, "delay_in_seconds" => 0 }
8
+ DEFAULT_OPTIONS = { "status" => 200, "delay_in_seconds" => 0 }.freeze
9
+ DEFAULT_HEADERS = { "content-type" => "application/json" }.freeze
9
10
 
10
11
  def establish_defaults_in(options)
12
+ headers = options["headers"] ||= {}
11
13
  DEFAULT_OPTIONS.each { |key, value| options[key] = value if !options[key] || options[key] == "" }
14
+ DEFAULT_HEADERS.each { |key, value| headers[key] = value if !headers[key] || headers[key] == "" }
12
15
  end
13
16
 
14
17
  public
@@ -36,7 +39,7 @@ module HttpStub
36
39
  end
37
40
 
38
41
  def headers
39
- {"content-type" => @response_options["content_type"]}
42
+ @response_options["headers"]
40
43
  end
41
44
 
42
45
  def empty?
@@ -1,11 +1,11 @@
1
1
  module HttpStub
2
2
  module Rake
3
3
 
4
- class DaemonTasks < ::Rake::TaskLib
4
+ class ServerDaemonTasks < ::Rake::TaskLib
5
5
 
6
6
  def initialize(options)
7
7
  HttpStub::Rake::ServerTasks.new(options)
8
- namespace(options[:name]) { HttpServerManager::Rake::ServerTasks.new(HttpStub::Daemon.new(options)) }
8
+ namespace(options[:name]) { HttpServerManager::Rake::ServerTasks.new(HttpStub::ServerDaemon.new(options)) }
9
9
  end
10
10
 
11
11
  end
@@ -4,4 +4,4 @@ require 'rake/tasklib' unless defined? (::Rake::TaskLib)
4
4
  require 'http_server_manager/rake/task_generators'
5
5
 
6
6
  require File.expand_path('../server_tasks', __FILE__)
7
- require File.expand_path('../daemon_tasks', __FILE__)
7
+ require File.expand_path('../server_daemon_tasks', __FILE__)
@@ -1,6 +1,6 @@
1
1
  module HttpStub
2
2
 
3
- class Daemon < HttpServerManager::Server
3
+ class ServerDaemon < HttpServerManager::Server
4
4
 
5
5
  class << self
6
6
 
@@ -1,3 +1,3 @@
1
1
  module HttpStub
2
- VERSION = "0.11.3"
2
+ VERSION = "0.13.0"
3
3
  end
data/lib/http_stub.rb CHANGED
@@ -24,7 +24,7 @@ require_relative 'http_stub/models/request_pipeline'
24
24
  require_relative 'http_stub/controllers/stub_controller'
25
25
  require_relative 'http_stub/controllers/stub_activator_controller'
26
26
  require_relative 'http_stub/server'
27
- require_relative 'http_stub/daemon'
27
+ require_relative 'http_stub/server_daemon'
28
28
  require_relative 'http_stub/configurer/request/omittable'
29
29
  require_relative 'http_stub/configurer/request/regexpable'
30
30
  require_relative 'http_stub/configurer/request/controllable_value'
@@ -6,21 +6,21 @@ describe HttpStub::Configurer::Request::Stub do
6
6
 
7
7
  let(:uri) { "/some/uri" }
8
8
  let(:stub_method) { "Some Method" }
9
- let(:headers) { { "header_name" => "value" } }
10
- let(:parameters) { { "parameter_name" => "value" } }
9
+ let(:request_headers) { { "request_header_name" => "value" } }
10
+ let(:request_parameters) { { "parameter_name" => "value" } }
11
11
  let(:response_status) { 500 }
12
+ let(:response_headers) { { "response_header_name" => "value" } }
12
13
  let(:response_body) { "Some body" }
13
14
  let(:response_delay_in_seconds) { 7 }
14
- let(:response_content_type) { "application/xhtml" }
15
15
 
16
16
  let(:stub_options) do
17
17
  {
18
18
  method: stub_method,
19
- headers: headers,
20
- parameters: parameters,
19
+ headers: request_headers,
20
+ parameters: request_parameters,
21
21
  response: {
22
22
  status: response_status,
23
- content_type: response_content_type,
23
+ headers: response_headers,
24
24
  body: response_body,
25
25
  delay_in_seconds: response_delay_in_seconds
26
26
  }
@@ -44,19 +44,19 @@ describe HttpStub::Configurer::Request::Stub do
44
44
  request.content_type.should eql("application/json")
45
45
  end
46
46
 
47
- context "when a header option is provided" do
47
+ context "when a request header option is provided" do
48
48
 
49
49
  it "should format the headers into control values" do
50
- HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with(headers)
50
+ HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with(request_headers)
51
51
 
52
52
  request
53
53
  end
54
54
 
55
55
  end
56
56
 
57
- context "when no header is provided" do
57
+ context "when no request header is provided" do
58
58
 
59
- let(:headers) { nil }
59
+ let(:request_headers) { nil }
60
60
 
61
61
  it "should format an empty header hash" do
62
62
  HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with({})
@@ -66,19 +66,19 @@ describe HttpStub::Configurer::Request::Stub do
66
66
 
67
67
  end
68
68
 
69
- context "when a parameter option is provided" do
69
+ context "when a request parameter option is provided" do
70
70
 
71
- it "should format the parameters into control values" do
72
- HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with(parameters)
71
+ it "should format the request parameters into control values" do
72
+ HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with(request_parameters)
73
73
 
74
74
  request
75
75
  end
76
76
 
77
77
  end
78
78
 
79
- context "when no parameter option is provided" do
79
+ context "when no request parameter option is provided" do
80
80
 
81
- let(:parameters) { nil }
81
+ let(:request_parameters) { nil }
82
82
 
83
83
  it "should format an empty parameter hash" do
84
84
  HttpStub::Configurer::Request::ControllableValue.should_receive(:format).with({})
@@ -100,18 +100,18 @@ describe HttpStub::Configurer::Request::Stub do
100
100
  request_body.should include("method" => stub_method)
101
101
  end
102
102
 
103
- it "should have an entry containing the string representation of the headers" do
103
+ it "should have an entry containing the string representation of the request headers" do
104
104
  HttpStub::Configurer::Request::ControllableValue.should_receive(:format)
105
- .with(headers).and_return("headers as string")
105
+ .with(request_headers).and_return("request headers as string")
106
106
 
107
- request_body.should include("headers" => "headers as string")
107
+ request_body.should include("headers" => "request headers as string")
108
108
  end
109
109
 
110
- it "should have an entry containing the string representation of the parameters" do
110
+ it "should have an entry containing the string representation of the request parameters" do
111
111
  HttpStub::Configurer::Request::ControllableValue.should_receive(:format)
112
- .with(parameters).and_return("parameters as string")
112
+ .with(request_parameters).and_return("request parameters as string")
113
113
 
114
- request_body.should include("parameters" => "parameters as string")
114
+ request_body.should include("parameters" => "request parameters as string")
115
115
  end
116
116
 
117
117
  context "when a status response option is provided" do
@@ -154,19 +154,22 @@ describe HttpStub::Configurer::Request::Stub do
154
154
 
155
155
  end
156
156
 
157
- context "when a content type is provided" do
157
+ context "when response headers are provided" do
158
158
 
159
- it "should have a response entry for the option" do
160
- request_body["response"].should include("content_type" => response_content_type)
159
+ let(:response_headers) { { "response_header_name" => "value" } }
160
+
161
+ it "should have a headers response entry containing the the provided headers" do
162
+ request_body["response"]["headers"].should eql(response_headers)
161
163
  end
164
+
162
165
  end
163
166
 
164
- context "when a content type is not provided" do
167
+ context "when response headers are not provided" do
165
168
 
166
- let (:response_content_type) { nil }
169
+ let (:response_headers) { nil }
167
170
 
168
- it "should have a response entry with the default content type" do
169
- request_body["response"].should include("content_type" => "application/json")
171
+ it "should have a headers response entry containing an empty hash" do
172
+ request_body["response"]["headers"].should eql({})
170
173
  end
171
174
  end
172
175
 
@@ -467,21 +467,47 @@ describe HttpStub::Configurer, "when the server is running" do
467
467
 
468
468
  end
469
469
 
470
- describe "and an attempt is made to register a response with a given content type" do
470
+ describe "and an attempt is made to register a response with a content type header" do
471
471
 
472
472
  before(:each) do
473
473
  configurer.stub_response!(
474
- "/some_stub_path", method: :get, response: { body: "Some stub body", content_type: "application/xhtml" }
474
+ "/some_stub_path", method: :get, response: { body: "Some stub body",
475
+ headers: { "content-type" => "application/xhtml" } }
475
476
  )
476
477
  end
477
478
 
478
479
  it "should register the stub" do
479
480
  response = Net::HTTP.get_response("localhost", "/some_stub_path", 8001)
481
+
480
482
  response.content_type.should eql("application/xhtml")
481
483
  end
482
484
 
483
485
  end
484
486
 
487
+ describe "and an attempt is made to register a response with a other headers" do
488
+
489
+ let(:response_headers) do
490
+ {
491
+ "some_header" => "some value",
492
+ "another_header" => "another value",
493
+ "yet_another_header" => "yet another value"
494
+ }
495
+ end
496
+
497
+ before(:each) do
498
+ configurer.stub_response!(
499
+ "/some_stub_path", method: :get, response: { body: "Some stub body", headers: response_headers }
500
+ )
501
+ end
502
+
503
+ it "should register the stub" do
504
+ response = Net::HTTP.get_response("localhost", "/some_stub_path", 8001)
505
+
506
+ response_headers.each { |key, value| response[key].should eql(value) }
507
+ end
508
+
509
+ end
510
+
485
511
  end
486
512
 
487
513
  context "and the configurer has not been informed that the server has started" do
@@ -1,11 +1,14 @@
1
1
  describe HttpStub::Models::Response do
2
2
 
3
3
  let(:status) { 202 }
4
+ let(:headers) { nil }
4
5
  let(:body) { "A response body" }
5
6
  let(:delay_in_seconds) { 18 }
6
7
 
7
8
  let(:response) do
8
- HttpStub::Models::Response.new("status" => status, "body" => body, "delay_in_seconds" => delay_in_seconds)
9
+ HttpStub::Models::Response.new(
10
+ "status" => status, "headers" => headers, "body" => body, "delay_in_seconds" => delay_in_seconds
11
+ )
9
12
  end
10
13
 
11
14
  describe "::SUCCESS" do
@@ -116,9 +119,59 @@ describe HttpStub::Models::Response do
116
119
 
117
120
  end
118
121
 
122
+ describe "#headers" do
123
+
124
+ context "when headers are provided" do
125
+
126
+ context "that include a content type" do
127
+
128
+ let(:headers) do
129
+ { "content-type" => "some/content/type", "some_header" => "some value", "another_header" => "another value" }
130
+ end
131
+
132
+ it "should return a hash including the provided headers" do
133
+ response.headers.should eql(headers)
134
+ end
135
+
136
+ end
137
+
138
+ context "that do not include a content type" do
139
+
140
+ let(:headers) do
141
+ {
142
+ "some_header" => "some value",
143
+ "another_header" => "another value",
144
+ "yet_another_header" => "yet another value"
145
+ }
146
+ end
147
+
148
+ it "should return a hash including the provided headers" do
149
+ response.headers.should include(headers)
150
+ end
151
+
152
+ it "should return a hash including json as the default response content type" do
153
+ response.headers.should include("content-type" => "application/json")
154
+ end
155
+
156
+ end
157
+
158
+ end
159
+
160
+ context "when no headers are provided" do
161
+
162
+ let(:headers) { nil }
163
+
164
+ it "should return a hash containing json as the default response content type" do
165
+ response.headers.should eql("content-type" => "application/json")
166
+ end
167
+
168
+ end
169
+
170
+ end
171
+
119
172
  describe "#empty?" do
120
173
 
121
- describe "when the response is EMPTY" do
174
+ context "when the response is EMPTY" do
122
175
 
123
176
  it "should return true" do
124
177
  HttpStub::Models::Response::EMPTY.should be_empty
@@ -126,7 +179,7 @@ describe HttpStub::Models::Response do
126
179
 
127
180
  end
128
181
 
129
- describe "when the response is not EMPTY but contains no values" do
182
+ context "when the response is not EMPTY but contains no values" do
130
183
 
131
184
  it "should return true" do
132
185
  HttpStub::Models::Response.new.should be_empty
@@ -134,7 +187,7 @@ describe HttpStub::Models::Response do
134
187
 
135
188
  end
136
189
 
137
- describe "when the response is not EMPTY" do
190
+ context "when the response is not EMPTY" do
138
191
 
139
192
  it "should return false" do
140
193
  HttpStub::Models::Response::SUCCESS.should_not be_empty
@@ -1,15 +1,15 @@
1
- describe HttpStub::Rake::DaemonTasks do
1
+ describe HttpStub::Rake::ServerDaemonTasks do
2
2
  include Rake::DSL
3
3
 
4
- before(:all) { HttpStub::Rake::DaemonTasks.new(name: :example_daemon, port: 8002) }
4
+ before(:all) { HttpStub::Rake::ServerDaemonTasks.new(name: :example_server_daemon, port: 8002) }
5
5
 
6
6
  describe "start task" do
7
7
 
8
8
  context "when invoked" do
9
9
 
10
- before(:all) { @exit_flag = Rake::Task["example_daemon:start"].invoke("--trace") }
10
+ before(:all) { @exit_flag = Rake::Task["example_server_daemon:start"].invoke("--trace") }
11
11
 
12
- after(:all) { Rake::Task["example_daemon:stop"].invoke("--trace") }
12
+ after(:all) { Rake::Task["example_server_daemon:stop"].invoke("--trace") }
13
13
 
14
14
  it "should exit with a status code of 0" do
15
15
  @exit_flag.should be_true
@@ -0,0 +1,7 @@
1
+ describe HttpStub::ServerDaemon do
2
+
3
+ let(:server) { HttpStub::ServerDaemon.new(name: :example_server_daemon, port: 8002) }
4
+
5
+ it_should_behave_like "a managed http server"
6
+
7
+ end
@@ -1,10 +1,10 @@
1
- describe HttpStub::Daemon do
1
+ describe HttpStub::ServerDaemon do
2
2
 
3
3
  let(:configurer) { nil }
4
4
 
5
- let(:daemon) { HttpStub::Daemon.new(name: :sample_daemon, port: 8888, configurer: configurer) }
5
+ let(:server_daemon) { HttpStub::ServerDaemon.new(name: :sample_server_daemon, port: 8888, configurer: configurer) }
6
6
 
7
- before(:each) { daemon.logger.stub(:info) }
7
+ before(:each) { server_daemon.logger.stub(:info) }
8
8
 
9
9
  describe ".log_dir" do
10
10
 
@@ -13,7 +13,7 @@ describe HttpStub::Daemon do
13
13
  after(:each) { HttpServerManager.log_dir = @original_log_dir }
14
14
 
15
15
  it "should establish the HttpServerManager log_dir" do
16
- HttpStub::Daemon.log_dir = "/some/log/dir"
16
+ HttpStub::ServerDaemon.log_dir = "/some/log/dir"
17
17
 
18
18
  HttpServerManager.log_dir.should eql("/some/log/dir")
19
19
  end
@@ -27,7 +27,7 @@ describe HttpStub::Daemon do
27
27
  after(:each) { HttpServerManager.pid_dir = @original_pid_dir }
28
28
 
29
29
  it "should establish the HttpServerManager pid_dir" do
30
- HttpStub::Daemon.pid_dir = "/some/pid/dir"
30
+ HttpStub::ServerDaemon.pid_dir = "/some/pid/dir"
31
31
 
32
32
  HttpServerManager.pid_dir.should eql("/some/pid/dir")
33
33
  end
@@ -36,7 +36,7 @@ describe HttpStub::Daemon do
36
36
 
37
37
  describe "#start!" do
38
38
 
39
- before(:each) { daemon.stub(:running?).and_return(true) }
39
+ before(:each) { server_daemon.stub(:running?).and_return(true) }
40
40
 
41
41
  context "when a configurer is provided" do
42
42
 
@@ -45,23 +45,23 @@ describe HttpStub::Daemon do
45
45
  it "should initialize the configurer" do
46
46
  configurer.should_receive(:initialize!)
47
47
 
48
- daemon.start!
48
+ server_daemon.start!
49
49
  end
50
50
 
51
- it "should log that the daemon with the provided name has been initialized" do
52
- daemon.logger.should_receive(:info).with("sample_daemon initialized")
51
+ it "should log that the server with the provided name has been initialized" do
52
+ server_daemon.logger.should_receive(:info).with("sample_server_daemon initialized")
53
53
 
54
- daemon.start!
54
+ server_daemon.start!
55
55
  end
56
56
 
57
57
  end
58
58
 
59
59
  context "when no configurer is provided" do
60
60
 
61
- it "should not log that the daemon has been initialized" do
62
- daemon.logger.should_not_receive(:info).with("sample_daemon initialized")
61
+ it "should not log that the server has been initialized" do
62
+ server_daemon.logger.should_not_receive(:info).with("sample_server_daemon initialized")
63
63
 
64
- daemon.start!
64
+ server_daemon.start!
65
65
  end
66
66
 
67
67
  end
@@ -181,9 +181,13 @@ describe HttpStub::Server do
181
181
 
182
182
  it "should respond with the response's content type" do
183
183
  stub_controller.stub(:replay).and_return(
184
- HttpStub::Models::Response.new("status" => 200, "body" => "A body", "content_type" => "application/xhtml")
184
+ HttpStub::Models::Response.new(
185
+ "status" => 200, "headers" => { "content-type" => "application/xhtml" }, "body" => "A body"
186
+ )
185
187
  )
188
+
186
189
  get "/some/stubbed/uri"
190
+
187
191
  response.content_type.should eql("application/xhtml")
188
192
  end
189
193
 
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'bundler'
2
- Bundler.require(:default, :development)
2
+ Bundler.require(:development)
3
3
 
4
4
  SimpleCov.start do
5
5
  add_filter "/spec/"
6
6
  add_filter "/vendor/"
7
- minimum_coverage 100
7
+ minimum_coverage 99.2
8
8
  refuse_coverage_drop
9
9
  end if ENV["coverage"]
10
10
 
@@ -18,8 +18,8 @@ require_relative '../examples/configurer_with_initialize_callback'
18
18
  require_relative '../examples/configurer_with_complex_initializer'
19
19
  require_relative '../examples/configurer_with_many_class_activators'
20
20
 
21
- HttpStub::Daemon.log_dir = File.expand_path('../../tmp/log', __FILE__)
22
- HttpStub::Daemon.pid_dir = File.expand_path('../../tmp/pids', __FILE__)
21
+ HttpStub::ServerDaemon.log_dir = File.expand_path('../../tmp/log', __FILE__)
22
+ HttpStub::ServerDaemon.pid_dir = File.expand_path('../../tmp/pids', __FILE__)
23
23
 
24
24
  HttpServerManager.logger = HttpServerManager::Test::SilentLogger
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_stub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.13.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-20 00:00:00.000000000 Z
13
+ date: 2013-11-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra
@@ -286,7 +286,6 @@ files:
286
286
  - ./lib/http_stub/configurer.rb
287
287
  - ./lib/http_stub/controllers/stub_activator_controller.rb
288
288
  - ./lib/http_stub/controllers/stub_controller.rb
289
- - ./lib/http_stub/daemon.rb
290
289
  - ./lib/http_stub/hash_extensions.rb
291
290
  - ./lib/http_stub/models/exact_value_matcher.rb
292
291
  - ./lib/http_stub/models/hash_with_value_matchers.rb
@@ -302,10 +301,11 @@ files:
302
301
  - ./lib/http_stub/models/stub_parameters.rb
303
302
  - ./lib/http_stub/models/stub_uri.rb
304
303
  - ./lib/http_stub/models/value_matcher.rb
305
- - ./lib/http_stub/rake/daemon_tasks.rb
304
+ - ./lib/http_stub/rake/server_daemon_tasks.rb
306
305
  - ./lib/http_stub/rake/server_tasks.rb
307
306
  - ./lib/http_stub/rake/task_generators.rb
308
307
  - ./lib/http_stub/server.rb
308
+ - ./lib/http_stub/server_daemon.rb
309
309
  - ./lib/http_stub/version.rb
310
310
  - ./lib/http_stub/views/_stub.haml
311
311
  - ./lib/http_stub/views/application.sass
@@ -327,8 +327,6 @@ files:
327
327
  - ./spec/lib/http_stub/configurer_spec.rb
328
328
  - ./spec/lib/http_stub/controllers/stub_activator_controller_spec.rb
329
329
  - ./spec/lib/http_stub/controllers/stub_controller_spec.rb
330
- - ./spec/lib/http_stub/daemon_integration_spec.rb
331
- - ./spec/lib/http_stub/daemon_spec.rb
332
330
  - ./spec/lib/http_stub/hash_extensions_spec.rb
333
331
  - ./spec/lib/http_stub/models/exact_value_matcher_spec.rb
334
332
  - ./spec/lib/http_stub/models/hash_with_value_matchers_spec.rb
@@ -344,9 +342,11 @@ files:
344
342
  - ./spec/lib/http_stub/models/stub_spec.rb
345
343
  - ./spec/lib/http_stub/models/stub_uri_spec.rb
346
344
  - ./spec/lib/http_stub/models/value_matcher_spec.rb
347
- - ./spec/lib/http_stub/rake/daemon_tasks_smoke_spec.rb
345
+ - ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
348
346
  - ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
349
347
  - ./spec/lib/http_stub/rake/server_tasks_spec.rb
348
+ - ./spec/lib/http_stub/server_daemon_integration_spec.rb
349
+ - ./spec/lib/http_stub/server_daemon_spec.rb
350
350
  - ./spec/lib/http_stub/server_integration_spec.rb
351
351
  - ./spec/lib/http_stub/server_spec.rb
352
352
  - ./spec/spec_helper.rb
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  version: '0'
373
373
  segments:
374
374
  - 0
375
- hash: 3912546874238801238
375
+ hash: 4435099791600975775
376
376
  requirements: []
377
377
  rubyforge_project: http_stub
378
378
  rubygems_version: 1.8.25
@@ -394,8 +394,6 @@ test_files:
394
394
  - ./spec/lib/http_stub/configurer_spec.rb
395
395
  - ./spec/lib/http_stub/controllers/stub_activator_controller_spec.rb
396
396
  - ./spec/lib/http_stub/controllers/stub_controller_spec.rb
397
- - ./spec/lib/http_stub/daemon_integration_spec.rb
398
- - ./spec/lib/http_stub/daemon_spec.rb
399
397
  - ./spec/lib/http_stub/hash_extensions_spec.rb
400
398
  - ./spec/lib/http_stub/models/exact_value_matcher_spec.rb
401
399
  - ./spec/lib/http_stub/models/hash_with_value_matchers_spec.rb
@@ -411,9 +409,11 @@ test_files:
411
409
  - ./spec/lib/http_stub/models/stub_spec.rb
412
410
  - ./spec/lib/http_stub/models/stub_uri_spec.rb
413
411
  - ./spec/lib/http_stub/models/value_matcher_spec.rb
414
- - ./spec/lib/http_stub/rake/daemon_tasks_smoke_spec.rb
412
+ - ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
415
413
  - ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
416
414
  - ./spec/lib/http_stub/rake/server_tasks_spec.rb
415
+ - ./spec/lib/http_stub/server_daemon_integration_spec.rb
416
+ - ./spec/lib/http_stub/server_daemon_spec.rb
417
417
  - ./spec/lib/http_stub/server_integration_spec.rb
418
418
  - ./spec/lib/http_stub/server_spec.rb
419
419
  - ./spec/spec_helper.rb
@@ -1,7 +0,0 @@
1
- describe HttpStub::Daemon do
2
-
3
- let(:server) { HttpStub::Daemon.new(name: :example_daemon, port: 8002) }
4
-
5
- it_should_behave_like "a managed http server"
6
-
7
- end