mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2025-01-18 13:30:48 +00:00
whitespace fix
load obs.yml instead
This commit is contained in:
parent
799ae52b02
commit
d9b054b108
@ -1,12 +1,12 @@
|
||||
require "minitest"
|
||||
require "minitest/autorun"
|
||||
require "perfect_toml"
|
||||
require "yaml"
|
||||
|
||||
require_relative "../lib/obsws"
|
||||
|
||||
class OBSWSTest < Minitest::Test
|
||||
def self.before_run
|
||||
conn = PerfectTOML.load_file("obs.toml", symbolize_names: true)[:connection]
|
||||
conn = YAML.load_file("obs.yml", symbolize_names: true)[:connection]
|
||||
@@r_client = OBSWS::Requests::Client.new(**conn)
|
||||
|
||||
@@r_client.create_scene("START_TEST")
|
||||
|
@ -4,14 +4,14 @@ class AttrsTest < OBSWSTest
|
||||
def test_get_version_attrs
|
||||
resp = @@r_client.get_version
|
||||
assert resp.attrs ==
|
||||
%w[
|
||||
available_requests
|
||||
obs_version
|
||||
obs_web_socket_version
|
||||
platform
|
||||
platform_description
|
||||
rpc_version
|
||||
supported_image_formats
|
||||
]
|
||||
%w[
|
||||
available_requests
|
||||
obs_version
|
||||
obs_web_socket_version
|
||||
platform
|
||||
platform_description
|
||||
rpc_version
|
||||
supported_image_formats
|
||||
]
|
||||
end
|
||||
end
|
||||
|
@ -30,9 +30,9 @@ class RequestTest < OBSWSTest
|
||||
resp = @@r_client.get_stream_service_settings
|
||||
assert resp.stream_service_type == "rtmp_common"
|
||||
assert resp.stream_service_settings ==
|
||||
{
|
||||
server: "rtmp://addressofrtmpserver",
|
||||
key: "live_myvery_secretkey"
|
||||
}
|
||||
{
|
||||
server: "rtmp://addressofrtmpserver",
|
||||
key: "live_myvery_secretkey"
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user