Skip to content

Commit 004e075

Browse files
committed
Make the fake IPA size a constant
1 parent 672f4ac commit 004e075

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/ios_send_app_size_metrics_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +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
78

89
# Utility method to turn a minified JSON into a pretty-formatted JSON (without the GZIP fake prefix if any)
910
# To make any test failure and diff easier to debug
@@ -78,7 +79,7 @@ def test_app_size_action(fake_ipa_size:, expected_json:, **other_action_args)
7879
expected_json = JSON.parse(File.read(expected_fixture)).to_json
7980

8081
test_app_size_action(
81-
fake_ipa_size: 1337,
82+
fake_ipa_size: fake_ipa_size,
8283
expected_json: expected_json,
8384
app_thinning_plist_path: app_thinning_plist_path,
8485
app_name: 'wordpress',

0 commit comments

Comments
 (0)