sonos 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +0,0 @@
1
- module DiscoveryMacros
2
- def stub_discovery
3
- Sonos::Discovery.any_instance.stubs(:initialize_socket)
4
- Sonos::Discovery.any_instance.stubs(:send_discovery_message)
5
- Sonos::Discovery.any_instance.stubs(:listen_for_responses).returns('10.0.1.10')
6
- end
7
- end
@@ -1,4 +0,0 @@
1
- VCR.configure do |c|
2
- c.cassette_library_dir = 'test/cassettes'
3
- c.hook_into :fakeweb
4
- end
@@ -1,15 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- Bundler.require :test
4
- require 'minitest/autorun'
5
- require 'mocha/setup'
6
- require 'sonos'
7
-
8
- # Support files
9
- Dir["#{File.expand_path(File.dirname(__FILE__))}/support/*.rb"].each do |file|
10
- require file
11
- end
12
-
13
- class SonosTest < MiniTest::Unit::TestCase
14
- include DiscoveryMacros
15
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- class SystemTest < SonosTest
4
- def before_suites
5
- super
6
- stub_discovery
7
- end
8
-
9
- def test_singleton
10
- VCR.use_cassette('topology', match_requests_on: [:path]) do
11
- assert_equal Sonos.system.object_id, Sonos.system.object_id
12
- end
13
- end
14
-
15
- def test_group_detection
16
- VCR.use_cassette('topology', match_requests_on: [:path]) do
17
- system = Sonos.system
18
- assert_equal 1, system.groups.length
19
- end
20
- end
21
- end