Skip to content

Commit

Permalink
Update RSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
pex committed Sep 15, 2014
1 parent 9b0351b commit d2322fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color
3 changes: 1 addition & 2 deletions spec/rack/reverse_proxy_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Rack::ReverseProxy do
RSpec.describe Rack::ReverseProxy do
include Rack::Test::Methods
include WebMock::API

def app
Rack::ReverseProxy.new
Expand Down
2 changes: 0 additions & 2 deletions spec/spec.opts

This file was deleted.

23 changes: 18 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
require 'rack/reverse_proxy'
require 'spec'
require 'spec/autorun'
require 'rubygems'
require 'rack/reverse_proxy'
require 'rspec'
require 'rack/test'
require 'webmock'
require 'webmock/rspec'

Spec::Runner.configure do |config|
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
# This option will default to `true` in RSpec 4.
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
expectations.syntax = [:should]
end
config.mock_with :rspec do |mocks|
mocks.verify_doubled_constant_names = true
mocks.verify_partial_doubles = true
mocks.syntax = [:should]
# Prevents you from mocking or stubbing a method that does not exist on
# a real object. This is generally recommended, and will default to
# `true` in RSpec 4.
mocks.verify_partial_doubles = true
end

WebMock.disable_net_connect!
end

0 comments on commit d2322fb

Please sign in to comment.