Skip to content

Commit

Permalink
Use proper constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Mar 2, 2011
1 parent 9329f89 commit 508efd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/vcr/util/internet_connection_spec.rb
Expand Up @@ -7,7 +7,7 @@
end

def stub_pingecho_with(value)
Ping.stub(:pingecho).with("example.com", anything, anything).and_return(value)
VCR::Ping.stub(:pingecho).with("example.com", anything, anything).and_return(value)
end

context 'when pinging example.com succeeds' do
Expand All @@ -17,7 +17,7 @@ def stub_pingecho_with(value)
end

it 'memoizes the value so no extra pings are made' do
Ping.should_receive(:pingecho).once.and_return(true)
VCR::Ping.should_receive(:pingecho).once.and_return(true)
3.times { described_class.available? }
end
end
Expand All @@ -29,7 +29,7 @@ def stub_pingecho_with(value)
end

it 'memoizes the value so no extra pings are made' do
Ping.should_receive(:pingecho).once.and_return(false)
VCR::Ping.should_receive(:pingecho).once.and_return(false)
3.times { described_class.available? }
end
end
Expand Down

0 comments on commit 508efd0

Please sign in to comment.