diff options
| author | Mike McQuaid | 2016-09-11 17:43:09 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-11 21:48:06 +0100 |
| commit | fc7ac2f07b93a4037652df673cafce6619598f6b (patch) | |
| tree | 71bf6b5acb2f15d0b24ea7052bef2d1d791a382d | |
| parent | 501774e3bc73d5dd367054b954893d9561bf00d2 (diff) | |
| download | brew-fc7ac2f07b93a4037652df673cafce6619598f6b.tar.bz2 | |
test/test_resource: fix Rubocop warnings.
| -rw-r--r-- | Library/Homebrew/test/test_resource.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_resource.rb b/Library/Homebrew/test/test_resource.rb index 9f0b1ca98..b0e0d1b72 100644 --- a/Library/Homebrew/test/test_resource.rb +++ b/Library/Homebrew/test/test_resource.rb @@ -100,8 +100,8 @@ class ResourceTests < Homebrew::TestCase def test_download_strategy strategy = Object.new - DownloadStrategyDetector. - expects(:detect).with("foo", nil).returns(strategy) + DownloadStrategyDetector + .expects(:detect).with("foo", nil).returns(strategy) @resource.url("foo") assert_equal strategy, @resource.download_strategy end @@ -120,8 +120,8 @@ class ResourceTests < Homebrew::TestCase fn = stub(:file? => true) checksum = @resource.sha256(TEST_SHA256) - fn.expects(:verify_checksum).with(checksum). - raises(ChecksumMismatchError.new(fn, checksum, Object.new)) + fn.expects(:verify_checksum).with(checksum) + .raises(ChecksumMismatchError.new(fn, checksum, Object.new)) shutup do assert_raises(ChecksumMismatchError) do |
