Skip to content

Commit

Permalink
Merge pull request #155 from brettchalupa/non-std-gems
Browse files Browse the repository at this point in the history
add logger and ostruct to gemspec
  • Loading branch information
brettchalupa authored Sep 13, 2024
2 parents 304432c + fe97653 commit c8ac991
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions graphql-docs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Gem::Specification.new do |spec|
spec.add_dependency 'gemoji', '~> 3.0'
spec.add_dependency 'html-pipeline', '>= 2.14.3', '~> 2.14'
spec.add_dependency 'sass-embedded', '~> 1.58'
spec.add_dependency 'ostruct', '~> 0.6'
spec.add_dependency 'logger', '~> 1.6'

spec.add_development_dependency 'html-proofer', '~> 3.4'
spec.add_development_dependency 'minitest', '~> 5.0'
Expand Down
8 changes: 4 additions & 4 deletions test/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_cli_help
assert cmd("--help")
end
assert_match /Usage/, out
assert err.empty?
assert err.empty?, "errors not empty"
end

def test_cli_verbose
Expand All @@ -41,14 +41,14 @@ def test_cli_verbose
end
assert_match /Generating site/, out
assert_match /Site successfully generated/, out
assert err.empty?
assert err.empty?, "errors not empty"
end

def test_cli_base_url
out, err = capture_subprocess_io do
assert cmd("#{@schema} -b https://example.com")
end
assert err.empty?
assert err.empty?, "errors not empty"
assert File.read(File.join("output", 'index.html')).include?("<link rel=\"stylesheet\" href=\"https://example.com/assets/style.css\">")
end

Expand All @@ -57,7 +57,7 @@ def test_cli_version
assert cmd("--version")
end
assert_match /#{GraphQLDocs::VERSION}/, out
assert err.empty?
assert err.empty?, "errors not empty"
end

private
Expand Down

0 comments on commit c8ac991

Please sign in to comment.