diff --git a/test/minitest_helper.rb b/test/minitest_helper.rb index 5cd0de7..b1c4efd 100644 --- a/test/minitest_helper.rb +++ b/test/minitest_helper.rb @@ -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") diff --git a/test/obsws/attrs_test.rb b/test/obsws/attrs_test.rb index 75a63fa..a3d21f7 100644 --- a/test/obsws/attrs_test.rb +++ b/test/obsws/attrs_test.rb @@ -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 diff --git a/test/obsws/request_test.rb b/test/obsws/request_test.rb index 7912141..7a6ad84 100644 --- a/test/obsws/request_test.rb +++ b/test/obsws/request_test.rb @@ -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