Sha256: 59f66d7c77c3699e98ef1064b2a953af5671a4d44a29d94ac35f3cb06af69288
Contents?: true
Size: 650 Bytes
Versions: 9
Compression:
Stored size: 650 Bytes
Contents
require 'spec_helper' describe VCR::HttpStubbingAdapters::FakeWeb, 'deprecations', :disable_warnings => true do describe 'LOCALHOST_REGEX constant' do subject { described_class::LOCALHOST_REGEX } it 'refers to the expected regex' do should == %r|\Ahttps?://((\w+:)?\w+@)?(#{VCR::LOCALHOST_ALIASES.sort.map { |a| Regexp.escape(a) }.join('|')})(:\d+)?/|i end it 'prints a warning: WARNING: `VCR::HttpStubbingAdapters::FakeWeb::LOCALHOST_REGEX` is deprecated.' do described_class.should_receive(:warn).with("WARNING: `VCR::HttpStubbingAdapters::FakeWeb::LOCALHOST_REGEX` is deprecated.") subject end end end
Version data entries
9 entries across 9 versions & 1 rubygems