mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Changed use of spec/base.rb into spec/spec_helper.rb
This commit is contained in:
parent
c8dd0c2154
commit
9b083b6a6e
12 changed files with 13 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
describe RestClient::AbstractResponse do
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), '../base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), '../spec_helper')
|
||||
|
||||
describe RestClient::Request do
|
||||
describe "ssl verification" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: binary
|
||||
require File.join(File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join(File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
describe RestClient::Payload do
|
||||
context "A regular Payload" do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
describe RestClient::RawResponse do
|
||||
before do
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
require 'webmock/rspec'
|
||||
include WebMock::API
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
|
||||
require File.join( File.dirname(File.expand_path(__FILE__)), 'spec_helper')
|
||||
|
||||
describe RestClient do
|
||||
describe "API" do
|
||||
|
|
|
|||
|
|
@ -2,12 +2,10 @@ def is_ruby_19?
|
|||
RUBY_VERSION > '1.9'
|
||||
end
|
||||
|
||||
require 'rubygems'
|
||||
|
||||
begin
|
||||
require "ruby-debug"
|
||||
rescue LoadError
|
||||
# NOP, ignore
|
||||
end
|
||||
|
||||
require File.dirname(__FILE__) + '/../lib/restclient'
|
||||
require 'restclient'
|
||||
Loading…
Add table
Add a link
Reference in a new issue