Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hyphen in ISO 8601 in rubocops/deprecate_spec.rb #7840

Merged
merged 1 commit into from Jun 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Library/Homebrew/test/rubocops/deprecate_spec.rb
Expand Up @@ -6,7 +6,7 @@
subject(:cop) { described_class.new }

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)
class Foo < Formula
url 'https://brew.sh/foo-1.0.tgz'
Expand All @@ -16,7 +16,7 @@ class Foo < Formula
RUBY
end

it "deprecation date is ISO-8601 compliant" do
it "deprecation date is ISO 8601 compliant" do
expect_no_offenses(<<~RUBY)
class Foo < Formula
url 'https://brew.sh/foo-1.0.tgz'
Expand All @@ -34,7 +34,7 @@ class Foo < Formula
RUBY
end

it "auto corrects to ISO-8601 format" do
it "auto corrects to ISO 8601 format" do
source = <<~RUBY
class Foo < Formula
url 'https://brew.sh/foo-1.0.tgz'
Expand Down