spec/vcr/util/internet_connection_spec.rb in vcr-2.4.0 vs spec/vcr/util/internet_connection_spec.rb in vcr-2.5.0

- old
+ new

@@ -11,11 +11,11 @@ end context 'when pinging example.com succeeds' do it 'returns true' do stub_pingecho_with(true) - described_class.should be_available + expect(described_class).to be_available end it 'memoizes the value so no extra pings are made' do VCR::Ping.should_receive(:pingecho).once.and_return(true) 3.times { described_class.available? } @@ -23,10 +23,10 @@ end context 'when pinging example.com fails' do it 'returns false' do stub_pingecho_with(false) - described_class.should_not be_available + expect(described_class).not_to be_available end it 'memoizes the value so no extra pings are made' do VCR::Ping.should_receive(:pingecho).once.and_return(false) 3.times { described_class.available? }