Skip to content
Browse files

Start using VCR with webmock.

  • Loading branch information...
1 parent 371f972 commit 8531405b7edb91caa57815a21c1881a961729c5d @kevintuhumury kevintuhumury committed Mar 16, 2012
Showing with 15 additions and 0 deletions.
  1. +2 −0 cameraplus.gemspec
  2. +6 −0 spec/spec_helper.rb
  3. +7 −0 spec/vcr_config.rb
View
2 cameraplus.gemspec
@@ -17,6 +17,8 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "httparty"
+ gem.add_development_dependency "vcr"
gem.add_development_dependency "rspec"
+ gem.add_development_dependency "webmock"
gem.add_development_dependency "simplecov"
end
View
6 spec/spec_helper.rb
@@ -0,0 +1,6 @@
+require "cameraplus"
+require "vcr_config"
+
+RSpec.configure do |c|
+ c.extend VCR::RSpec::Macros
+end
View
7 spec/vcr_config.rb
@@ -0,0 +1,7 @@
+require 'vcr'
+
+VCR.configure do |c|
+ c.ignore_localhost = true
+ c.cassette_library_dir = "spec/vcr_cassettes"
+ c.hook_into :webmock
+end

0 comments on commit 8531405

Please sign in to comment.
Something went wrong with that request. Please try again.