test/test_resource: fix Rubocop warnings.
This commit is contained in:
parent
501774e3bc
commit
fc7ac2f07b
@ -100,8 +100,8 @@ class ResourceTests < Homebrew::TestCase
|
|||||||
|
|
||||||
def test_download_strategy
|
def test_download_strategy
|
||||||
strategy = Object.new
|
strategy = Object.new
|
||||||
DownloadStrategyDetector.
|
DownloadStrategyDetector
|
||||||
expects(:detect).with("foo", nil).returns(strategy)
|
.expects(:detect).with("foo", nil).returns(strategy)
|
||||||
@resource.url("foo")
|
@resource.url("foo")
|
||||||
assert_equal strategy, @resource.download_strategy
|
assert_equal strategy, @resource.download_strategy
|
||||||
end
|
end
|
||||||
@ -120,8 +120,8 @@ class ResourceTests < Homebrew::TestCase
|
|||||||
fn = stub(:file? => true)
|
fn = stub(:file? => true)
|
||||||
checksum = @resource.sha256(TEST_SHA256)
|
checksum = @resource.sha256(TEST_SHA256)
|
||||||
|
|
||||||
fn.expects(:verify_checksum).with(checksum).
|
fn.expects(:verify_checksum).with(checksum)
|
||||||
raises(ChecksumMismatchError.new(fn, checksum, Object.new))
|
.raises(ChecksumMismatchError.new(fn, checksum, Object.new))
|
||||||
|
|
||||||
shutup do
|
shutup do
|
||||||
assert_raises(ChecksumMismatchError) do
|
assert_raises(ChecksumMismatchError) do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user