Merge pull request #7840 from Rylan12/remove-iso-8601-hyphen
Remove hyphen in ISO 8601 in rubocops/deprecate_spec.rb
This commit is contained in:
commit
ba62b988e1
@ -6,7 +6,7 @@ describe RuboCop::Cop::FormulaAudit::Deprecate do
|
|||||||
subject(:cop) { described_class.new }
|
subject(:cop) { described_class.new }
|
||||||
|
|
||||||
context "When auditing formula for deprecate!" do
|
context "When auditing formula for deprecate!" do
|
||||||
it "deprecation date is not ISO-8601 compliant" do
|
it "deprecation date is not ISO 8601 compliant" do
|
||||||
expect_offense(<<~RUBY)
|
expect_offense(<<~RUBY)
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url 'https://brew.sh/foo-1.0.tgz'
|
url 'https://brew.sh/foo-1.0.tgz'
|
||||||
@ -16,7 +16,7 @@ describe RuboCop::Cop::FormulaAudit::Deprecate do
|
|||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
it "deprecation date is ISO-8601 compliant" do
|
it "deprecation date is ISO 8601 compliant" do
|
||||||
expect_no_offenses(<<~RUBY)
|
expect_no_offenses(<<~RUBY)
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url 'https://brew.sh/foo-1.0.tgz'
|
url 'https://brew.sh/foo-1.0.tgz'
|
||||||
@ -34,7 +34,7 @@ describe RuboCop::Cop::FormulaAudit::Deprecate do
|
|||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
|
|
||||||
it "auto corrects to ISO-8601 format" do
|
it "auto corrects to ISO 8601 format" do
|
||||||
source = <<~RUBY
|
source = <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url 'https://brew.sh/foo-1.0.tgz'
|
url 'https://brew.sh/foo-1.0.tgz'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user