Sha256: cf49462e3c6b1077f680f7bb9e16807f919ef96716b85676b3b7eaeac0c594e4

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

require 'test_helper'

class SystemTest < SonosTest
  def before_suites
    super
    stub_discovery
  end

  def test_singleton
    VCR.use_cassette('topology', match_requests_on: [:path]) do
      assert_equal Sonos.system.object_id, Sonos.system.object_id
    end
  end

  def test_group_detection
    VCR.use_cassette('topology', match_requests_on: [:path]) do
      system = Sonos.system
      assert_equal 1, system.groups.length
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sonos-0.3.4 test/units/system_test.rb
sonos-0.3.3 test/units/system_test.rb
sonos-0.3.2 test/units/system_test.rb
sonos-0.3.1 test/units/system_test.rb
sonos-0.3.0 test/units/system_test.rb