Fix spacing and indentation.
This commit is contained in:
parent
2b7e6c1dcb
commit
ad8ae33c1f
@ -91,7 +91,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
# unnecessary DMG metadata
|
# unnecessary DMG metadata
|
||||||
DMG_METADATA_FILES = %w[
|
DMG_METADATA_FILES = Set.new %w[
|
||||||
.background
|
.background
|
||||||
.com.apple.timemachine.donotpresent
|
.com.apple.timemachine.donotpresent
|
||||||
.com.apple.timemachine.supported
|
.com.apple.timemachine.supported
|
||||||
@ -103,7 +103,7 @@ module Hbc
|
|||||||
.TemporaryItems
|
.TemporaryItems
|
||||||
.Trashes
|
.Trashes
|
||||||
.VolumeIcon.icns
|
.VolumeIcon.icns
|
||||||
].to_set.freeze
|
].freeze
|
||||||
|
|
||||||
def dmg_metadata?(path)
|
def dmg_metadata?(path)
|
||||||
relative_root = path.sub(%r{/.*}, "")
|
relative_root = path.sub(%r{/.*}, "")
|
||||||
|
@ -11,7 +11,7 @@ describe Locale do
|
|||||||
|
|
||||||
context "raises a ParserError when given" do
|
context "raises a ParserError when given" do
|
||||||
it "an empty string" do
|
it "an empty string" do
|
||||||
expect{ described_class.parse("") }.to raise_error(Locale::ParserError)
|
expect { described_class.parse("") }.to raise_error(Locale::ParserError)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "a string in a wrong format" do
|
it "a string in a wrong format" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user