Skip to content

Commit 49b0342

Browse files
committed
Rename fixture (in prep for Android counterpart)
1 parent 0935df5 commit 49b0342

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/ios_send_app_size_metrics_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let(:test_data_dir) { File.join(File.dirname(__FILE__), 'test-data', 'app_size_metrics') }
55
let(:mocked_endpoint) { 'https://localhost/api/metrics' }
66
let(:mocked_token) { 'token/1' }
7-
let(:fake_ipa_size) { 1337 } # The value used in the `app-thinning.plist` and `app-size-metrics-payload.json` fixtures
7+
let(:fake_ipa_size) { 1337 } # The value used in the `app-thinning.plist` and `ios-metrics-payload.json` fixtures
88

99
# Utility method to turn a minified JSON into a pretty-formatted JSON (without the GZIP fake prefix if any)
1010
# To make any test failure and diff easier to debug
@@ -75,7 +75,7 @@ def test_app_size_action(fake_ipa_size:, expected_json:, **other_action_args)
7575

7676
it 'sends the right payload from an ipa file and an app-thinning.plist' do
7777
app_thinning_plist_path = File.join(test_data_dir, 'app-thinning.plist')
78-
expected_fixture = File.join(test_data_dir, 'app-size-metrics-payload.json')
78+
expected_fixture = File.join(test_data_dir, 'ios-metrics-payload.json')
7979
# Parse as Hash then reconvert to JSON, in order to get the 'minified' JSON version
8080
expected_json = JSON.parse(File.read(expected_fixture)).to_json
8181

@@ -97,7 +97,7 @@ def test_app_size_action(fake_ipa_size:, expected_json:, **other_action_args)
9797
output_path = File.join(tmp_dir, 'payload.json')
9898

9999
app_thinning_plist_path = File.join(test_data_dir, 'app-thinning.plist')
100-
expected_fixture = File.join(test_data_dir, 'app-size-metrics-payload.json')
100+
expected_fixture = File.join(test_data_dir, 'ios-metrics-payload.json')
101101
# Parse as Hash then reconvert to JSON, in order to get the 'minified' JSON version
102102
expected_json = JSON.parse(File.read(expected_fixture)).to_json
103103

spec/test-data/app_size_metrics/app-size-metrics-payload.json renamed to spec/test-data/app_size_metrics/ios-metrics-payload.json

File renamed without changes.

0 commit comments

Comments
 (0)