33
44require 'test_helper'
55
6- class AgentSetupCLITest < Minitest ::Test
6+ class AgentSetupInitTest < Minitest ::Test
77 CONFIG_FILENAME = '123.yml'
88 SUBFOLDER_CONFIG_FILEPATH = 'conf/123.yml'
99 EXPECTED_CONFIG_CONTENT = %(name: appmap-ruby
@@ -12,13 +12,13 @@ class AgentSetupCLITest < Minitest::Test
1212)
1313
1414 def test_init_when_config_exists
15- output = `./exe/appmap-agent-setup init`
15+ output = `./exe/appmap-agent-init`
1616 assert_equal 0 , $CHILD_STATUS. exitstatus
1717 assert_includes output , 'The AppMap config file appmap.yml already exists.'
1818 end
1919
2020 def test_init_with_custom_config_filename
21- output = `./exe/appmap-agent-setup -c #{ CONFIG_FILENAME } init `
21+ output = `./exe/appmap-agent-init -c #{ CONFIG_FILENAME } `
2222 assert_equal 0 , $CHILD_STATUS. exitstatus
2323 assert_includes output , "The following AppMap config file #{ CONFIG_FILENAME } has been created:"
2424 assert_equal EXPECTED_CONFIG_CONTENT , File . read ( CONFIG_FILENAME )
@@ -27,7 +27,7 @@ def test_init_with_custom_config_filename
2727 end
2828
2929 def test_init_with_custom_config_file_in_subfolder
30- output = `./exe/appmap-agent-setup -c #{ SUBFOLDER_CONFIG_FILEPATH } init `
30+ output = `./exe/appmap-agent-init --config= #{ SUBFOLDER_CONFIG_FILEPATH } `
3131 assert_equal 0 , $CHILD_STATUS. exitstatus
3232 assert_includes output , "The following AppMap config file #{ SUBFOLDER_CONFIG_FILEPATH } has been created:"
3333 assert_equal EXPECTED_CONFIG_CONTENT , File . read ( SUBFOLDER_CONFIG_FILEPATH )
0 commit comments