|
6 | 6 | include_context 'rails integration test setup' |
7 | 7 |
|
8 | 8 | describe 'rspec metadata' do |
9 | | - let(:appmap_json_files) { Dir.glob("#{tmpdir}/appmap/rspec/*.appmap.json") } |
| 9 | + let(:appmap_json_files) { Dir.glob("#{tmpdir}/appmap/rspec/**/*.appmap.json") } |
10 | 10 |
|
11 | 11 | it 'appmap: false disables recording' do |
12 | 12 | test_names = appmap_json_files.map(&File.method(:read)).map(&JSON.method(:parse)).map do |json| |
|
20 | 20 | describe 'an API route' do |
21 | 21 | describe 'creating an object' do |
22 | 22 | let(:appmap_json_file) do |
23 | | - 'Api_UsersController_POST_api_users_with_required_parameters_creates_a_user.appmap.json' |
| 23 | + 'controllers/Api_UsersController_POST_api_users_with_required_parameters_creates_a_user.appmap.json' |
24 | 24 | end |
25 | 25 |
|
26 | 26 | it 'http_server_request is recorded in the appmap' do |
|
104 | 104 | end |
105 | 105 |
|
106 | 106 | context 'with an object-style message' do |
107 | | - let(:appmap_json_file) { 'Api_UsersController_POST_api_users_with_required_parameters_with_object-style_parameters_creates_a_user.appmap.json' } |
| 107 | + let(:appmap_json_file) { 'controllers/Api_UsersController_POST_api_users_with_required_parameters_with_object-style_parameters_creates_a_user.appmap.json' } |
108 | 108 |
|
109 | 109 | it 'message properties are recorded in the appmap' do |
110 | 110 | expect(events).to include( |
|
126 | 126 |
|
127 | 127 | describe 'listing objects' do |
128 | 128 | context 'with a custom header' do |
129 | | - let(:appmap_json_file) { 'Api_UsersController_GET_api_users_with_a_custom_header_lists_the_users.appmap.json' } |
| 129 | + let(:appmap_json_file) { 'controllers/Api_UsersController_GET_api_users_with_a_custom_header_lists_the_users.appmap.json' } |
130 | 130 |
|
131 | 131 | it 'custom header is recorded in the appmap' do |
132 | 132 | expect(events).to include( |
|
144 | 144 | describe 'a UI route' do |
145 | 145 | describe 'rendering a page using a template file' do |
146 | 146 | let(:appmap_json_file) do |
147 | | - 'UsersController_GET_users_lists_the_users.appmap.json' |
| 147 | + 'controllers/UsersController_GET_users_lists_the_users.appmap.json' |
148 | 148 | end |
149 | 149 |
|
150 | 150 | it 'records the template file' do |
|
186 | 186 |
|
187 | 187 | describe 'rendering a page using a text template' do |
188 | 188 | let(:appmap_json_file) do |
189 | | - 'UsersController_GET_users_login_shows_the_user.appmap.json' |
| 189 | + 'controllers/UsersController_GET_users_login_shows_the_user.appmap.json' |
190 | 190 | end |
191 | 191 |
|
192 | 192 | it 'records the normalized path info' do |
|
257 | 257 | include_context 'rails integration test setup' |
258 | 258 |
|
259 | 259 | let(:appmap_json_file) do |
260 | | - 'Api_UsersController_POST_api_users_with_required_parameters_creates_a_user.appmap.json' |
| 260 | + 'controllers/Api_UsersController_POST_api_users_with_required_parameters_creates_a_user.appmap.json' |
261 | 261 | end |
262 | 262 |
|
263 | 263 | it 'http_server_request is recorded' do |
|
0 commit comments