Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved all of the extensions into their own folder.

  • Loading branch information...
commit 1679d4f8ea647fba5fa6a3fdf243ea3f0fcdc025 1 parent 72c3fb2
Myron Marston authored
7 lib/vcr.rb
View
@@ -1,11 +1,12 @@
require 'vcr/cassette'
require 'vcr/config'
require 'vcr/cucumber_tags'
-require 'vcr/fake_web_extensions'
-require 'vcr/net_http_extensions'
-require 'vcr/net_read_adapter_extensions'
require 'vcr/recorded_response'
+require 'vcr/extensions/fake_web'
+require 'vcr/extensions/net_http'
+require 'vcr/extensions/net_read_adapter'
+
module VCR
extend self
0  lib/vcr/fake_web_extensions.rb → lib/vcr/extensions/fake_web.rb
View
File renamed without changes
0  lib/vcr/net_http_extensions.rb → lib/vcr/extensions/net_http.rb
View
File renamed without changes
0  lib/vcr/net_read_adapter_extensions.rb → lib/vcr/extensions/net_read_adapter.rb
View
File renamed without changes
4 spec/fake_web_extensions_spec.rb → spec/extensions/fake_web_spec.rb
View
@@ -1,6 +1,6 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-describe "FakeWebExtensions" do
+describe "FakeWeb Extensions" do
describe "#remove_from_registry with (:get, 'http://example.com')" do
before(:each) do
FakeWeb.register_uri(:get, 'http://example.com', :body => "Example dot com!")
4 spec/net_http_extensions_spec.rb → spec/extensions/net_http_spec.rb
View
@@ -1,6 +1,6 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-describe "NetHttpExtensions" do
+describe "Net::HTTP Extensions" do
before(:all) do
@orig_allow_net_connect = FakeWeb.allow_net_connect?
FakeWeb.allow_net_connect = true
2  spec/net_read_adapter_extensions_spec.rb → spec/extensions/net_read_adapter_spec.rb
View
@@ -1,4 +1,4 @@
-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe 'Net::ReadAdapter extensions' do
it 'delegates yaml serialization to the body string' do
Please sign in to comment.
Something went wrong with that request. Please try again.