-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathRuby31Test.php
32 lines (28 loc) · 1.09 KB
/
Ruby31Test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Tests;
class Ruby31Test extends Base
{
protected string $sdkName = 'ruby';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'ruby';
protected string $version = '0.0.1';
protected string $language = 'ruby';
protected string $class = 'Appwrite\SDK\Language\Ruby';
protected array $build = [
'docker run --rm -v $(pwd):/app -w /app/tests/sdks/ruby --env GEM_HOME=/app/vendor ruby:3.1-alpine sh -c "apk add git build-base && bundle install"',
];
protected string $command =
'docker run --network="mockapi" --rm -v $(pwd):/app -w /app --env GEM_HOME=vendor ruby:3.1-alpine ruby tests/languages/ruby/tests.rb';
protected array $expectedOutput = [
...Base::FOO_RESPONSES,
...Base::BAR_RESPONSES,
...Base::GENERAL_RESPONSES,
...Base::UPLOAD_RESPONSES,
...Base::ENUM_RESPONSES,
...Base::EXCEPTION_RESPONSES,
...Base::OAUTH_RESPONSES,
...Base::QUERY_HELPER_RESPONSES,
...Base::PERMISSION_HELPER_RESPONSES,
...Base::ID_HELPER_RESPONSES
];
}