From 2907cc6dd0b0d2d80d44ae292a157651d6e05ee7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Aug 2013 05:25:22 +0000 Subject: player: flesh out multi-source in protocol/sourceedit We should be fully-capable of managing any number of options to try sources in. --- test/test_player_integration.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/test_player_integration.rb') diff --git a/test/test_player_integration.rb b/test/test_player_integration.rb index 8f44b49..757ed35 100644 --- a/test/test_player_integration.rb +++ b/test/test_player_integration.rb @@ -188,4 +188,21 @@ class TestPlayerIntegration < Minitest::Unit::TestCase assert_equal "/", s.req("pwd") end + + def test_source_ed + s = client_socket + assert_equal "sox av", s.req("source ls") + s.req_ok("source ed av tryorder=-1") + assert_equal "av sox", s.req("source ls") + s.req_ok("source ed av tryorder=") + assert_equal "sox av", s.req("source ls") + + s.req_ok("source ed sox command=true") + sox = YAML.load(s.req("source cat sox")) + assert_equal "true", sox["command"] + + s.req_ok("source ed sox command=") + sox = YAML.load(s.req("source cat sox")) + assert_equal DTAS::Source::Sox::SOX_DEFAULTS["command"], sox["command"] + end end -- cgit v1.2.3-24-ge0c7