Skip to content

Commit d2322fb

Browse files
committed
Update RSpec
1 parent 9b0351b commit d2322fb

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

spec/rack/reverse_proxy_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
22

3-
describe Rack::ReverseProxy do
3+
RSpec.describe Rack::ReverseProxy do
44
include Rack::Test::Methods
5-
include WebMock::API
65

76
def app
87
Rack::ReverseProxy.new

spec/spec.opts

Lines changed: 0 additions & 2 deletions
This file was deleted.

spec/spec_helper.rb

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
require 'rack/reverse_proxy'
2-
require 'spec'
3-
require 'spec/autorun'
41
require 'rubygems'
2+
require 'rack/reverse_proxy'
3+
require 'rspec'
54
require 'rack/test'
6-
require 'webmock'
75
require 'webmock/rspec'
86

9-
Spec::Runner.configure do |config|
7+
RSpec.configure do |config|
8+
config.expect_with :rspec do |expectations|
9+
# This option will default to `true` in RSpec 4.
10+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
11+
expectations.syntax = [:should]
12+
end
13+
config.mock_with :rspec do |mocks|
14+
mocks.verify_doubled_constant_names = true
15+
mocks.verify_partial_doubles = true
16+
mocks.syntax = [:should]
17+
# Prevents you from mocking or stubbing a method that does not exist on
18+
# a real object. This is generally recommended, and will default to
19+
# `true` in RSpec 4.
20+
mocks.verify_partial_doubles = true
21+
end
22+
1023
WebMock.disable_net_connect!
1124
end

0 commit comments

Comments
 (0)