Skip to content

Commit 610f8cb

Browse files
committed
Some affordances for unit tests
1 parent f6437b0 commit 610f8cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/github-pages-health-check/errors/wildcard_record_error.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ module GitHubPages
44
module HealthCheck
55
module Errors
66
class WildcardRecordError < GitHubPages::HealthCheck::Error
7-
DOCUMENTATION_PATH = "/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages"
7+
DOCUMENTATION_PATH = "/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages/"
88

99
attr_reader :parent_domain
1010

11-
def initialize(repository: nil, domain: nil, parent_domain:)
11+
def initialize(repository: nil, domain: nil, parent_domain: nil)
1212
super(repository: repository, domain: domain)
1313
@parent_domain = parent_domain
1414
end

spec/github_pages_health_check/errors_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
RSpec.describe(GitHubPages::HealthCheck::Errors) do
66
it "returns the errors" do
7-
expect(GitHubPages::HealthCheck::Errors.all.count).to eql(10)
7+
expect(GitHubPages::HealthCheck::Errors.all.count).to eql(11)
88
end
99
end

0 commit comments

Comments
 (0)