Skip to content

Commit

Permalink
Added gem vcr and fakeweb
Browse files Browse the repository at this point in the history
  • Loading branch information
jtadeulopes committed Nov 8, 2011
1 parent 5c6c577 commit 50a3fb1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -9,4 +9,6 @@ group :development do
gem "jeweler", "~> 1.5.2"
gem "rcov", ">= 0"
gem "webmock", "~> 1.6.2"
gem "vcr", "~> 1.11.3"
gem "fakeweb", "~> 1.3.0"
end
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -4,6 +4,7 @@ GEM
addressable (2.2.2)
crack (0.1.8)
diff-lcs (1.1.2)
fakeweb (1.3.0)
git (1.2.5)
httparty (0.7.4)
crack (= 0.1.8)
Expand All @@ -22,6 +23,7 @@ GEM
rspec-expectations (2.3.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.3.0)
vcr (1.11.3)
webmock (1.6.2)
addressable (>= 2.2.2)
crack (>= 0.1.7)
Expand All @@ -31,9 +33,11 @@ PLATFORMS

DEPENDENCIES
bundler (~> 1.0.0)
fakeweb (~> 1.3.0)
httparty (>= 0.6.1)
jeweler (~> 1.5.2)
json (>= 1.4.6)
rcov
rspec (~> 2.3.0)
vcr (~> 1.11.3)
webmock (~> 1.6.2)
14 changes: 13 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -3,11 +3,23 @@

require "rubygems"
require "rspec"
require 'webmock/rspec'
require 'vcr'

require 'googl'

require 'shared_examples'

RSpec.configure do |config|
config.extend VCR::RSpec::Macros
end

VCR.config do |c|
c.cassette_library_dir = 'spec/fixtures/cassette'
c.stub_with :fakeweb
c.default_cassette_options = { :record => :none }
c.allow_http_connections_when_no_cassette = false
end

def load_fixture(name)
File.new(File.join(File.expand_path(File.dirname(__FILE__)), '/fixtures', name))
end
Expand Down

0 comments on commit 50a3fb1

Please sign in to comment.