-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create test for agent_helper in gem files
Co-authored-by: AJ Esler <aj@esler.co.nz>
- Loading branch information
1 parent
98d02ca
commit 4049ec6
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'minitest/autorun' | ||
|
||
class GemspecFilesTest < Minitest::Test | ||
def test_the_test_agent_helper_is_shipped_in_the_gem_files | ||
skip if defined?(Rails::VERSION) | ||
|
||
agent_helper_file = 'test/agent_helper.rb' | ||
|
||
gem_spec_file_path = File.expand_path('../../../newrelic_rpm.gemspec', __FILE__) | ||
|
||
gem_spec = Gem::Specification.load(gem_spec_file_path) | ||
|
||
assert_equal('newrelic_rpm', gem_spec.name) | ||
assert_includes(gem_spec.files, agent_helper_file) | ||
end | ||
end |